Module Name: src
Committed By: khorben
Date: Wed Jun 26 22:58:59 UTC 2019
Modified Files:
src/sys/dev/usb: if_umb.c
Log Message:
Fix typos
Some were found by OpenBSD.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/usb/if_umb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/if_umb.c
diff -u src/sys/dev/usb/if_umb.c:1.8 src/sys/dev/usb/if_umb.c:1.9
--- src/sys/dev/usb/if_umb.c:1.8 Sun Jan 27 02:08:42 2019
+++ src/sys/dev/usb/if_umb.c Wed Jun 26 22:58:58 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_umb.c,v 1.8 2019/01/27 02:08:42 pgoyette Exp $ */
+/* $NetBSD: if_umb.c,v 1.9 2019/06/26 22:58:58 khorben Exp $ */
/* $OpenBSD: if_umb.c,v 1.20 2018/09/10 17:00:45 gerhard Exp $ */
/*
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_umb.c,v 1.8 2019/01/27 02:08:42 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_umb.c,v 1.9 2019/06/26 22:58:58 khorben Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1243,7 +1243,7 @@ umb_decode_response(struct umb_softc *sc
umb_command_done(sc, response, len);
break;
default:
- DPRINTF("%s: discard messsage %s\n", DEVNAM(sc),
+ DPRINTF("%s: discard message %s\n", DEVNAM(sc),
umb_request2str(type));
break;
}
@@ -1257,19 +1257,19 @@ umb_handle_indicate_status_msg(struct um
uint32_t cid;
if (len < sizeof(*m)) {
- DPRINTF("%s: discard short %s messsage\n", DEVNAM(sc),
+ DPRINTF("%s: discard short %s message\n", DEVNAM(sc),
umb_request2str(le32toh(m->hdr.type)));
return;
}
if (memcmp(m->devid, umb_uuid_basic_connect, sizeof(m->devid))) {
- DPRINTF("%s: discard %s messsage for other UUID '%s'\n",
+ DPRINTF("%s: discard %s message for other UUID '%s'\n",
DEVNAM(sc), umb_request2str(le32toh(m->hdr.type)),
umb_uuid2str(m->devid));
return;
}
infolen = le32toh(m->infolen);
if (len < sizeof(*m) + infolen) {
- DPRINTF("%s: discard truncated %s messsage (want %d, got %d)\n",
+ DPRINTF("%s: discard truncated %s message (want %d, got %d)\n",
DEVNAM(sc), umb_request2str(le32toh(m->hdr.type)),
(int)sizeof(*m) + infolen, len);
return;
@@ -1703,7 +1703,7 @@ umb_decode_ip_configuration(struct umb_s
s = splnet();
/*
- * IPv4 configuation
+ * IPv4 configuration
*/
avail = le32toh(ic->ipv4_available);
if (avail & MBIM_IPCONF_HAS_ADDRINFO) {
@@ -2381,7 +2381,7 @@ umb_command_done(struct umb_softc *sc, v
int qmimsg = 0;
if (len < sizeof(*cmd)) {
- DPRINTF("%s: discard short %s messsage\n", DEVNAM(sc),
+ DPRINTF("%s: discard short %s message\n", DEVNAM(sc),
umb_request2str(le32toh(cmd->hdr.type)));
return;
}
@@ -2389,7 +2389,7 @@ umb_command_done(struct umb_softc *sc, v
if (memcmp(cmd->devid, umb_uuid_basic_connect, sizeof(cmd->devid))) {
if (memcmp(cmd->devid, umb_uuid_qmi_mbim,
sizeof(cmd->devid))) {
- DPRINTF("%s: discard %s messsage for other UUID '%s'\n",
+ DPRINTF("%s: discard %s message for other UUID '%s'\n",
DEVNAM(sc), umb_request2str(le32toh(cmd->hdr.type)),
umb_uuid2str(cmd->devid));
return;
@@ -2418,7 +2418,7 @@ umb_command_done(struct umb_softc *sc, v
infolen = le32toh(cmd->infolen);
if (len < sizeof(*cmd) + infolen) {
- DPRINTF("%s: discard truncated %s messsage (want %d, got %d)\n",
+ DPRINTF("%s: discard truncated %s message (want %d, got %d)\n",
DEVNAM(sc), umb_cid2str(cid),
(int)sizeof(*cmd) + infolen, len);
return;
@@ -2639,7 +2639,7 @@ umb_intr(struct usbd_xfer *xfer, void *p
DEVNAM(sc));
break;
default:
- DPRINTF("%s: unexpected notifiation (0x%02x)\n",
+ DPRINTF("%s: unexpected notification (0x%02x)\n",
DEVNAM(sc), sc->sc_intr_msg.bNotification);
break;
}