chore: fix wformat warning

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-02-22 21:48:25 +08:00
parent 8ac0b65b30
commit 56afada2cc

View File

@@ -86,12 +86,12 @@ void usb_assert(const char *filename, int linenum);
static inline void usb_hexdump(const void *ptr, uint32_t buflen) static inline void usb_hexdump(const void *ptr, uint32_t buflen)
{ {
unsigned char *buf = (unsigned char *)ptr; unsigned char *buf = (unsigned char *)ptr;
uint32_t i, j; unsigned int i, j;
(void)buf; (void)buf;
for (i = 0; i < buflen; i += 16) { for (i = 0; i < buflen; i += 16) {
CONFIG_USB_PRINTF("%08lx:", i); CONFIG_USB_PRINTF("%08x:", i);
for (j = 0; j < 16; j++) for (j = 0; j < 16; j++)
if (i + j < buflen) { if (i + j < buflen) {