summaryrefslogtreecommitdiff
path: root/backend/pieusb_usb.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:58 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:58 +0200
commitd087d778ffb62e2713cb848540bcc819470365bd (patch)
treed69692a274dd1c7d0672e6bb7155a0fc106f9d49 /backend/pieusb_usb.c
parentc8bd2513ecba169cff44c09c8058c36987357b18 (diff)
parent3759ce55ba79b8d3b9d8ed247a252273ee7dade3 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'backend/pieusb_usb.c')
-rw-r--r--backend/pieusb_usb.c14
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;