diff options
| author | sakumisu <[email protected]> | 2024-01-30 23:04:35 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-01-30 23:04:35 +0800 |
| commit | eeb304ae08985a7e3e00d0b5f49c3c1442baf4bc (patch) | |
| tree | 85a78d51efdbe0a42279e851a4ba467c0499ee23 | |
| parent | fc8097228472fe766e34bf4aeae193fbc81cf318 (diff) | |
update log tag
| -rw-r--r-- | class/audio/usbh_audio.c | 4 | ||||
| -rw-r--r-- | class/cdc/usbh_cdc_acm.c | 4 | ||||
| -rw-r--r-- | class/cdc/usbh_cdc_ecm.c | 4 | ||||
| -rw-r--r-- | class/hid/usbh_hid.c | 4 | ||||
| -rw-r--r-- | class/hub/usbh_hub.c | 4 | ||||
| -rw-r--r-- | class/msc/usbh_msc.c | 4 | ||||
| -rw-r--r-- | class/video/usbh_video.c | 4 | ||||
| -rw-r--r-- | class/wireless/usbh_bluetooth.c | 4 | ||||
| -rw-r--r-- | class/wireless/usbh_rndis.c | 4 | ||||
| -rw-r--r-- | core/usbh_core.c | 4 |
10 files changed, 40 insertions, 0 deletions
diff --git a/class/audio/usbh_audio.c b/class/audio/usbh_audio.c index fd232750..ffc4a7e3 100644 --- a/class/audio/usbh_audio.c +++ b/class/audio/usbh_audio.c @@ -6,6 +6,10 @@ #include "usbh_core.h" #include "usbh_audio.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_audio" +#include "usb_log.h" + #define DEV_FORMAT "/dev/audio%d" /* general descriptor field offsets */ diff --git a/class/cdc/usbh_cdc_acm.c b/class/cdc/usbh_cdc_acm.c index 63d7d803..d11e14e2 100644 --- a/class/cdc/usbh_cdc_acm.c +++ b/class/cdc/usbh_cdc_acm.c @@ -6,6 +6,10 @@ #include "usbh_core.h" #include "usbh_cdc_acm.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_cdc_acm" +#include "usb_log.h" + #define DEV_FORMAT "/dev/ttyACM%d" USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX struct cdc_line_coding g_cdc_line_coding; diff --git a/class/cdc/usbh_cdc_ecm.c b/class/cdc/usbh_cdc_ecm.c index a23e4855..d6c390e9 100644 --- a/class/cdc/usbh_cdc_ecm.c +++ b/class/cdc/usbh_cdc_ecm.c @@ -6,6 +6,10 @@ #include "usbh_core.h" #include "usbh_cdc_ecm.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_cdc_ecm" +#include "usb_log.h" + #define DEV_FORMAT "/dev/cdc_ether" /* general descriptor field offsets */ diff --git a/class/hid/usbh_hid.c b/class/hid/usbh_hid.c index a522b0c2..159f8c58 100644 --- a/class/hid/usbh_hid.c +++ b/class/hid/usbh_hid.c @@ -6,6 +6,10 @@ #include "usbh_core.h" #include "usbh_hid.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_hid" +#include "usb_log.h" + #define DEV_FORMAT "/dev/input%d" USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_hid_buf[128]; diff --git a/class/hub/usbh_hub.c b/class/hub/usbh_hub.c index 52894e02..73b9e61b 100644 --- a/class/hub/usbh_hub.c +++ b/class/hub/usbh_hub.c @@ -6,6 +6,10 @@ #include "usbh_core.h" #include "usbh_hub.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_hub" +#include "usb_log.h" + #define DEV_FORMAT "/dev/hub%d" #define HUB_DEBOUNCE_TIMEOUT 1500 diff --git a/class/msc/usbh_msc.c b/class/msc/usbh_msc.c index b9c012a7..6c1f76b6 100644 --- a/class/msc/usbh_msc.c +++ b/class/msc/usbh_msc.c @@ -7,6 +7,10 @@ #include "usbh_msc.h" #include "usb_scsi.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_msc" +#include "usb_log.h" + #define DEV_FORMAT "/dev/sd%c" USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_msc_buf[32]; diff --git a/class/video/usbh_video.c b/class/video/usbh_video.c index 136cecc1..df2d8db1 100644 --- a/class/video/usbh_video.c +++ b/class/video/usbh_video.c @@ -6,6 +6,10 @@ #include "usbh_core.h" #include "usbh_video.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_video" +#include "usb_log.h" + #define DEV_FORMAT "/dev/video%d" /* general descriptor field offsets */ diff --git a/class/wireless/usbh_bluetooth.c b/class/wireless/usbh_bluetooth.c index a774985f..302638ff 100644 --- a/class/wireless/usbh_bluetooth.c +++ b/class/wireless/usbh_bluetooth.c @@ -6,6 +6,10 @@ #include "usbh_core.h" #include "usbh_bluetooth.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_bluetooth" +#include "usb_log.h" + #define DEV_FORMAT "/dev/bluetooth" static struct usbh_bluetooth g_bluetooth_class; diff --git a/class/wireless/usbh_rndis.c b/class/wireless/usbh_rndis.c index ff246f16..0106be71 100644 --- a/class/wireless/usbh_rndis.c +++ b/class/wireless/usbh_rndis.c @@ -7,6 +7,10 @@ #include "usbh_rndis.h" #include "rndis_protocol.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_rndis" +#include "usb_log.h" + #define DEV_FORMAT "/dev/rndis" USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_buf[4096]; diff --git a/core/usbh_core.c b/core/usbh_core.c index de2284b8..3845e94a 100644 --- a/core/usbh_core.c +++ b/core/usbh_core.c @@ -5,6 +5,10 @@ */ #include "usbh_core.h" +#undef USB_DBG_TAG +#define USB_DBG_TAG "usbh_core" +#include "usb_log.h" + struct usbh_class_info *usbh_class_info_table_begin = NULL; struct usbh_class_info *usbh_class_info_table_end = NULL; |
