Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Fix typos



details:   https://anonhg.NetBSD.org/src/rev/2f19cabd242a
branches:  trunk
changeset: 461639:2f19cabd242a
user:      khorben <khorben%NetBSD.org@localhost>
date:      Wed Jun 26 22:58:58 2019 +0000

description:
Fix typos

Some were found by OpenBSD.

diffstat:

 sys/dev/usb/if_umb.c |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (95 lines):

diff -r 516383d6b63c -r 2f19cabd242a sys/dev/usb/if_umb.c
--- a/sys/dev/usb/if_umb.c      Wed Jun 26 22:18:44 2019 +0000
+++ b/sys/dev/usb/if_umb.c      Wed Jun 26 22:58:58 2019 +0000
@@ -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_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 @@
        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 @@
        s = splnet();
 
        /*
-        * IPv4 configuation
+        * IPv4 configuration
         */
        avail = le32toh(ic->ipv4_available);
        if (avail & MBIM_IPCONF_HAS_ADDRINFO) {
@@ -2381,7 +2381,7 @@
        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 @@
        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 @@
 
        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 @@
                    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;
        }



Home | Main Index | Thread Index | Old Index