summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-07-27 23:33:14 -0400
committerMeco Man <[email protected]>2023-07-28 13:50:32 -0400
commit4e0225a48d59976b74f6e06cec64532ce00495ad (patch)
tree3e34fc4726c0d30636a7643c88b08e63c579f850 /components/drivers
parent307e9e5e98675da7c1fa32f15ab4130ca5f73a8a (diff)
[debug] use LOG_D instead RT_DEBUG_LOG
related: https://github.com/RT-Thread/rt-thread/pull/7799
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/usb/usbhost/core/hub.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/components/drivers/usb/usbhost/core/hub.c b/components/drivers/usb/usbhost/core/hub.c
index 38fc1c738f..d8e6716099 100644
--- a/components/drivers/usb/usbhost/core/hub.c
+++ b/components/drivers/usb/usbhost/core/hub.c
@@ -14,8 +14,8 @@
#define USB_THREAD_STACK_SIZE 4096
-#define DBG_TAG "usbhost.hub"
-#define DBG_LVL DBG_INFO
+#define DBG_TAG "usb.host.hub"
+#define DBG_LVL DBG_INFO
#include <rtdbg.h>
@@ -405,7 +405,7 @@ static rt_err_t rt_usbh_hub_port_change(uhub_t hub)
ret = rt_usbh_hub_get_port_status(hub, i + 1, &pstatus);
if(ret != RT_EOK) continue;
- RT_DEBUG_LOG_D("port %d status 0x%x", i + 1, pstatus);
+ LOG_D("port %d status 0x%x", i + 1, pstatus);
/* check port status change */
if (pstatus & PORT_CCSC)
@@ -512,8 +512,6 @@ static rt_err_t rt_usbh_hub_enable(void *arg)
/* paremeter check */
RT_ASSERT(intf != RT_NULL);
- RT_DEBUG_LOG_D("rt_usbh_hub_run");
-
/* get usb device instance */
device = intf->device;
@@ -613,7 +611,7 @@ static rt_err_t rt_usbh_hub_disable(void* arg)
/* paremeter check */
RT_ASSERT(intf != RT_NULL);
- RT_DEBUG_LOG_D("rt_usbh_hub_stop");
+ LOG_D("rt_usbh_hub_stop");
hub = (uhub_t)intf->user_data;
for(i=0; i<hub->num_ports; i++)
@@ -662,8 +660,6 @@ static void rt_usbh_hub_thread_entry(void* parameter)
if (rt_mq_recv(hcd->usb_mq, &msg, sizeof(struct uhost_msg), RT_WAITING_FOREVER) < 0)
continue;
- //RT_DEBUG_LOG_D("msg type %d", msg.type);
-
switch (msg.type)
{
case USB_MSG_CONNECT_CHANGE: