diff options
| author | sakumisu <[email protected]> | 2022-05-22 17:26:32 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-05-22 17:26:32 +0800 |
| commit | 458ed326d21f877d280e2db925b883454f9baaa6 (patch) | |
| tree | 8165a2a8b92b56c650dbc275b8bc500455c648d7 | |
| parent | 56364f29036813ec698e4e93abd0f27db2b4e5cf (diff) | |
fix -Wformat warning
| -rw-r--r-- | class/wireless/usbh_rndis.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/class/wireless/usbh_rndis.c b/class/wireless/usbh_rndis.c index 453e00f3..653a5e4c 100644 --- a/class/wireless/usbh_rndis.c +++ b/class/wireless/usbh_rndis.c @@ -70,7 +70,7 @@ int usbh_rndis_query_msg_transfer(struct usbh_rndis *rndis_class, uint32_t oid, ret = usbh_control_transfer(rndis_class->hport->ep0, setup, (uint8_t *)&cmd); if (ret < 0) { - USB_LOG_ERR("oid:%08x send error, ret: %d\r\n", oid, ret); + USB_LOG_ERR("oid:%08x send error, ret: %d\r\n", (unsigned int)oid, ret); return ret; } @@ -89,7 +89,7 @@ int usbh_rndis_query_msg_transfer(struct usbh_rndis *rndis_class, uint32_t oid, ret = usbh_control_transfer(rndis_class->hport->ep0, setup, (uint8_t *)resp); if (ret < 0) { - USB_LOG_ERR("oid:%08x recv error, ret: %d\r\n", oid, ret); + USB_LOG_ERR("oid:%08x recv error, ret: %d\r\n", (unsigned int)oid, ret); goto error_out; } @@ -132,7 +132,7 @@ static int usbh_rndis_set_msg_transfer(struct usbh_rndis *rndis_class, uint32_t ret = usbh_control_transfer(rndis_class->hport->ep0, setup, (uint8_t *)cmd); if (ret < 0) { - USB_LOG_ERR("oid:%08x send error, ret: %d\r\n", oid, ret); + USB_LOG_ERR("oid:%08x send error, ret: %d\r\n", (unsigned int)oid, ret); goto error_out; } @@ -146,7 +146,7 @@ static int usbh_rndis_set_msg_transfer(struct usbh_rndis *rndis_class, uint32_t ret = usbh_control_transfer(rndis_class->hport->ep0, setup, (uint8_t *)&resp); if (ret < 0) { - USB_LOG_ERR("oid:%08x recv error, ret: %d\r\n", oid, ret); + USB_LOG_ERR("oid:%08x recv error, ret: %d\r\n", (unsigned int)oid, ret); goto error_out; } @@ -203,8 +203,8 @@ static int usbh_rndis_connect(struct usbh_hubport *hport, uint8_t intf) struct usb_endpoint_descriptor *ep_desc; int ret; uint32_t *oid_support_list; - uint32_t oid; - uint32_t oid_num; + unsigned int oid = 0; + unsigned int oid_num = 0; uint32_t data_len; struct usbh_rndis *rndis_class = usb_malloc(sizeof(struct usbh_rndis)); |
