diff --git a/common/usb_log.h b/common/usb_log.h index ed6e7561..94eedfb6 100644 --- a/common/usb_log.h +++ b/common/usb_log.h @@ -86,12 +86,12 @@ void usb_assert(const char *filename, int linenum); static inline void usb_hexdump(const void *ptr, uint32_t buflen) { unsigned char *buf = (unsigned char *)ptr; - uint32_t i, j; + unsigned int i, j; (void)buf; for (i = 0; i < buflen; i += 16) { - CONFIG_USB_PRINTF("%08lx:", i); + CONFIG_USB_PRINTF("%08x:", i); for (j = 0; j < 16; j++) if (i + j < buflen) {