Skip to content

Commit 56afada

Browse files
committed
chore: fix wformat warning
Signed-off-by: sakumisu <1203593632@qq.com>
1 parent 8ac0b65 commit 56afada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/usb_log.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ void usb_assert(const char *filename, int linenum);
8686
static inline void usb_hexdump(const void *ptr, uint32_t buflen)
8787
{
8888
unsigned char *buf = (unsigned char *)ptr;
89-
uint32_t i, j;
89+
unsigned int i, j;
9090

9191
(void)buf;
9292

9393
for (i = 0; i < buflen; i += 16) {
94-
CONFIG_USB_PRINTF("%08lx:", i);
94+
CONFIG_USB_PRINTF("%08x:", i);
9595

9696
for (j = 0; j < 16; j++)
9797
if (i + j < buflen) {

0 commit comments

Comments
 (0)