if_umb.c: typos

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

if_umb.c: typos

Ingo Feinerer-2
A few messsage -> message fixes.

Index: if_umb.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_umb.c,v
retrieving revision 1.21
diff -u -p -r1.21 if_umb.c
--- if_umb.c 2 Oct 2018 19:49:10 -0000 1.21
+++ if_umb.c 14 Jan 2019 13:16:50 -0000
@@ -1197,7 +1197,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;
  }
@@ -1211,19 +1211,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(letoh32(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(letoh32(m->hdr.type)),
     umb_uuid2str(m->devid));
  return;
  }
  infolen = letoh32(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(letoh32(m->hdr.type)),
     (int)sizeof (*m) + infolen, len);
  return;
@@ -2333,7 +2333,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(letoh32(cmd->hdr.type)));
  return;
  }
@@ -2341,7 +2341,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(letoh32(cmd->hdr.type)),
     umb_uuid2str(cmd->devid));
  return;
@@ -2370,7 +2370,7 @@ umb_command_done(struct umb_softc *sc, v
 
  infolen = letoh32(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;

Reply | Threaded
Open this post in threaded view
|

Re: if_umb.c: typos

Gerhard Roth-2
Hello Ingo,

I must apologize for my sticky fingers and lots of copy & pasting :/
Thanks for finding.

ok gerhard@


On Mon, 14 Jan 2019 14:21:37 +0100 Ingo Feinerer <[hidden email]> wrote:

> A few messsage -> message fixes.
>
> Index: if_umb.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/if_umb.c,v
> retrieving revision 1.21
> diff -u -p -r1.21 if_umb.c
> --- if_umb.c 2 Oct 2018 19:49:10 -0000 1.21
> +++ if_umb.c 14 Jan 2019 13:16:50 -0000
> @@ -1197,7 +1197,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;
>   }
> @@ -1211,19 +1211,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(letoh32(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(letoh32(m->hdr.type)),
>      umb_uuid2str(m->devid));
>   return;
>   }
>   infolen = letoh32(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(letoh32(m->hdr.type)),
>      (int)sizeof (*m) + infolen, len);
>   return;
> @@ -2333,7 +2333,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(letoh32(cmd->hdr.type)));
>   return;
>   }
> @@ -2341,7 +2341,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(letoh32(cmd->hdr.type)),
>      umb_uuid2str(cmd->devid));
>   return;
> @@ -2370,7 +2370,7 @@ umb_command_done(struct umb_softc *sc, v
>  
>   infolen = letoh32(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;