diff options
| author | sakumisu <[email protected]> | 2025-03-28 22:39:30 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-03-28 22:39:30 +0800 |
| commit | 9a26c5090098d0ab8a59ce98418e28322d1bba73 (patch) | |
| tree | e4c8cc206d1fa5c758b51194f76287c4107c23ee /core | |
| parent | 91684e0677ad8684f80a33a91fc100984e2e09e2 (diff) | |
fix: fix wformat warnings
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'core')
| -rw-r--r-- | core/usbd_core.c | 6 | ||||
| -rw-r--r-- | core/usbh_core.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/usbd_core.c b/core/usbd_core.c index 2a425868..eaa0b11c 100644 --- a/core/usbd_core.c +++ b/core/usbd_core.c @@ -1228,7 +1228,7 @@ static void usbd_event_ep0_in_complete_handler(uint8_t busid, uint8_t ep, uint32 g_usbd_core[busid].ep0_data_buf += nbytes; g_usbd_core[busid].ep0_data_buf_residue -= nbytes; - USB_LOG_DBG("EP0 send %d bytes, %d remained\r\n", nbytes, g_usbd_core[busid].ep0_data_buf_residue); + USB_LOG_DBG("EP0 send %d bytes, %d remained\r\n", (unsigned int)nbytes, (unsigned int)g_usbd_core[busid].ep0_data_buf_residue); if (g_usbd_core[busid].ep0_data_buf_residue != 0) { /* Start sending the remain data */ @@ -1271,7 +1271,7 @@ static void usbd_event_ep0_out_complete_handler(uint8_t busid, uint8_t ep, uint3 g_usbd_core[busid].ep0_data_buf += nbytes; g_usbd_core[busid].ep0_data_buf_residue -= nbytes; - USB_LOG_DBG("EP0 recv %d bytes, %d remained\r\n", nbytes, g_usbd_core[busid].ep0_data_buf_residue); + USB_LOG_DBG("EP0 recv %d bytes, %d remained\r\n", (unsigned int)nbytes, (unsigned int)g_usbd_core[busid].ep0_data_buf_residue); if (g_usbd_core[busid].ep0_data_buf_residue == 0) { #ifdef CONFIG_USBDEV_EP0_THREAD @@ -1438,7 +1438,7 @@ static void usbdev_ep0_thread(CONFIG_USB_OSAL_THREAD_SET_ARGV) if (ret < 0) { continue; } - USB_LOG_DBG("event:%d\r\n", event); + USB_LOG_DBG("event:%d\r\n", (unsigned int)event); switch (event) { case USB_EP0_STATE_SETUP: diff --git a/core/usbh_core.c b/core/usbh_core.c index 29c6c2bc..15187a0b 100644 --- a/core/usbh_core.c +++ b/core/usbh_core.c @@ -482,7 +482,7 @@ int usbh_enumerate(struct usbh_hubport *hport) if (wTotalLength > CONFIG_USBHOST_REQUEST_BUFFER_LEN) { ret = -USB_ERR_NOMEM; - USB_LOG_ERR("wTotalLength %d is overflow, default is %d\r\n", wTotalLength, CONFIG_USBHOST_REQUEST_BUFFER_LEN); + USB_LOG_ERR("wTotalLength %d is overflow, default is %d\r\n", wTotalLength, (unsigned int)CONFIG_USBHOST_REQUEST_BUFFER_LEN); goto errout; } |
