diff options
| author | sakumisu <[email protected]> | 2021-11-09 10:28:10 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2021-11-09 10:28:10 +0800 |
| commit | bb5f7e434b2bbf75f92521748efe2ece54385209 (patch) | |
| tree | 30f2c7ad105eb081fb6c4282418e1dd942e88d73 /common | |
| parent | 936dda1df52914583e590a7e01d5b263cb35ab2c (diff) | |
modify class request print log
Diffstat (limited to 'common')
| -rw-r--r-- | common/usb_dc.h | 1 | ||||
| -rw-r--r-- | common/usb_util.h | 13 |
2 files changed, 7 insertions, 7 deletions
diff --git a/common/usb_dc.h b/common/usb_dc.h index ea57fcde..29997c11 100644 --- a/common/usb_dc.h +++ b/common/usb_dc.h @@ -2,7 +2,6 @@ #define _USB_DC_H
#include "stdint.h"
-#include "bflb_platform.h"
#ifdef __cplusplus
extern "C" {
diff --git a/common/usb_util.h b/common/usb_util.h index eebd3401..4c18cc14 100644 --- a/common/usb_util.h +++ b/common/usb_util.h @@ -5,6 +5,7 @@ #include "string.h"
#include "stdint.h"
#include "stdio.h"
+#include "stdlib.h"
#include "usb_slist.h"
#ifndef __packed
@@ -127,14 +128,14 @@ #define DBVAL(x) (x & 0xFF), ((x >> 8) & 0xFF), ((x >> 16) & 0xFF), ((x >> 24) & 0xFF)
#if 0
-#define USBD_LOG_WRN(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
-#define USBD_LOG_DBG(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
-#define USBD_LOG_ERR(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
+#define USBD_LOG_WRN(a, ...) printf(a, ##__VA_ARGS__)
+#define USBD_LOG_DBG(a, ...) printf(a, ##__VA_ARGS__)
+#define USBD_LOG_ERR(a, ...) printf(a, ##__VA_ARGS__)
#else
-#define USBD_LOG_WRN(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
+#define USBD_LOG_WRN(a, ...) printf(a, ##__VA_ARGS__)
#define USBD_LOG_DBG(a, ...)
-#define USBD_LOG_ERR(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
-#define USBD_LOG(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
+#define USBD_LOG_ERR(a, ...) printf(a, ##__VA_ARGS__)
+#define USBD_LOG(a, ...) printf(a, ##__VA_ARGS__)
#endif
#endif
\ No newline at end of file |
