diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-03-30 21:30:45 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-03-30 21:30:45 +0200 |
commit | ee770c2346eb37e0dcb8b6cf3eaacf3d8efd6bbc (patch) | |
tree | 58f05092be1a17a939e861f8cadcda1b6ca2ecef /backend/pieusb_usb.c | |
parent | 0da9e21872802cfc6e975b1ebaf9efb9e5934d84 (diff) | |
parent | fef76e17ed4c607ea73b81279f9ef1d7121be900 (diff) |
Merge branch 'release/experimental/1.0.29-1_experimental1'experimental/1.0.29-1_experimental1
Diffstat (limited to 'backend/pieusb_usb.c')
-rw-r--r-- | backend/pieusb_usb.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/backend/pieusb_usb.c b/backend/pieusb_usb.c index 71b6bcf..31008fa 100644 --- a/backend/pieusb_usb.c +++ b/backend/pieusb_usb.c @@ -176,11 +176,13 @@ _hexdump(char *msg, unsigned char *ptr, int size) clipped = size; size = 128; } - while (size-- > 0) - { - if ((count % 16) == 0) - fprintf (stderr, "%s\t%08lx:", msg?msg:"", start); - msg = NULL; + while (size-- > 0) + { + if ((count % 16) == 0) + { + fprintf (stderr, "%s\t%08lx:", msg?msg:"", start); + msg = NULL; + } fprintf (stderr, " %02x", *ptr++); count++; start++; @@ -207,7 +209,7 @@ _hexdump(char *msg, unsigned char *ptr, int size) if ((count % 16) != 0) fprintf (stderr, "\n"); if (clipped > 0) - fprintf (stderr, "\t%08lx bytes clipped\n", clipped); + fprintf (stderr, "\t%08lx bytes clipped\n", clipped); fflush(stderr); return; |