From 56afada2cc2af27e882ac90a44bf4174b9c62c1c Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sat, 22 Feb 2025 21:48:25 +0800 Subject: [PATCH] chore: fix wformat warning Signed-off-by: sakumisu <1203593632@qq.com> --- common/usb_log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {