summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-02-22 21:48:25 +0800
committersakumisu <[email protected]>2025-02-22 21:48:25 +0800
commit56afada2cc2af27e882ac90a44bf4174b9c62c1c (patch)
treeca15eb2bc44d92f25010990b25da28d971a60ba0
parent8ac0b65b308d45f539232c3ab135ded08054cde4 (diff)
chore: fix wformat warning
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--common/usb_log.h4
1 files 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) {