From eda139a9db6f9e11124a9aeb49d10bf5c04e8cdc Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 31 Dec 2014 14:01:32 -0500 Subject: [PATCH] common: formatting fixes. --- backend_common.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/backend_common.c b/backend_common.c index 376f275..ff30abc 100644 --- a/backend_common.c +++ b/backend_common.c @@ -186,8 +186,10 @@ int read_data(struct libusb_device_handle *dev, uint8_t endp, DEBUG("<- "); while(i > 0) { - if (i % 16 == 0 && i != *readlen) - DEBUG2("\n "); + if (i % 16 == 0 && i != *readlen) { + DEBUG2("\n"); + DEBUG(" "); + } DEBUG2("%02x ", *(buf+i)); i--; } @@ -219,8 +221,10 @@ int send_data(struct libusb_device_handle *dev, uint8_t endp, DEBUG("-> "); while(i > 0) { - if (i % 16 == 0 && i != num) - DEBUG2("\n "); + if (i % 16 == 0 && i != num) { + DEBUG2("\n"); + DEBUG(" "); + } DEBUG2("%02x ", *(buf+i)); i--; }