ソースを参照

chore: fix wformat warning

Signed-off-by: sakumisu <1203593632@qq.com>
sakumisu 10 ヶ月 前
コミット
56afada2cc
1 ファイル変更2 行追加2 行削除
  1. 2 2
      common/usb_log.h

+ 2 - 2
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) {