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--; }