summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakimisu <[email protected]>2023-01-07 17:00:49 +0800
committersakimisu <[email protected]>2023-01-07 17:02:52 +0800
commit55e4adccd6535154939a5e204f6c9227d8a70aaa (patch)
treedded50792388e722d8e66f65f1374bff153fe858
parent5f39f6dce95a266eef0515c804ac80262b30f6c3 (diff)
reduce print log
-rw-r--r--core/usbd_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/usbd_core.c b/core/usbd_core.c
index 0ea4815d..e3f74344 100644
--- a/core/usbd_core.c
+++ b/core/usbd_core.c
@@ -113,7 +113,7 @@ static bool usbd_set_endpoint(const struct usb_endpoint_descriptor *ep_desc)
ep_cfg.ep_mps = ep_desc->wMaxPacketSize & USB_MAXPACKETSIZE_MASK;
ep_cfg.ep_type = ep_desc->bmAttributes & USB_ENDPOINT_TYPE_MASK;
- USB_LOG_INFO("Open endpoint:0x%x type:%u mps:%u\r\n",
+ USB_LOG_INFO("Open ep:0x%02x type:%u mps:%u\r\n",
ep_cfg.ep_addr, ep_cfg.ep_type, ep_cfg.ep_mps);
return usbd_ep_open(&ep_cfg) == 0 ? true : false;
@@ -136,7 +136,7 @@ static bool usbd_reset_endpoint(const struct usb_endpoint_descriptor *ep_desc)
ep_cfg.ep_mps = ep_desc->wMaxPacketSize & USB_MAXPACKETSIZE_MASK;
ep_cfg.ep_type = ep_desc->bmAttributes & USB_ENDPOINT_TYPE_MASK;
- USB_LOG_INFO("Close endpoint:0x%x type:%u\r\n",
+ USB_LOG_INFO("Close ep:0x%02x type:%u\r\n",
ep_cfg.ep_addr, ep_cfg.ep_type);
return usbd_ep_close(ep_cfg.ep_addr) == 0 ? true : false;
@@ -884,7 +884,7 @@ static bool usbd_setup_request_handler(struct usb_setup_packet *setup, uint8_t *
if (usbd_standard_request_handler(setup, data, len) < 0) {
#ifndef CONFIG_USB_HS
if ((setup->bRequest == 0x06) && (setup->wValue = 0x0600)) {
- USB_LOG_WRN("Ignore device quality in full speed\r\n");
+ USB_LOG_WRN("Ignore DQD in fs\r\n"); /* Device Qualifier Descriptor */
return false;
}
#endif