diff options
| author | Ha Thach <[email protected]> | 2023-08-02 16:26:57 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-02 16:26:57 +0700 |
| commit | 5cf94234d20cf74e1d6bb952ce1680b25f2568b3 (patch) | |
| tree | 30617e2acbcfb690ca5fc845e0a8c714a8b7d42b /src/class/cdc/cdc_host.c | |
| parent | 2cf869c1a4e9cac81b6dc3b3917aa08b0e39b122 (diff) | |
| parent | 868d52f3a87d4404b0e93e49781d4190589599b9 (diff) | |
Merge pull request #2200 from hathach/selective-log
default class driver log level to CFG_TUH/TUD_LOG_LEVEL
Diffstat (limited to 'src/class/cdc/cdc_host.c')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index ce9f27c33..7f9ed18b3 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -33,9 +33,12 @@ #include "cdc_host.h" -// Debug level, TUSB_CFG_DEBUG must be at least this level for debug message -#define CDCH_DEBUG 2 -#define TU_LOG_DRV(...) TU_LOG(CDCH_DEBUG, __VA_ARGS__) +// Level where CFG_TUSB_DEBUG must be at least for this driver is logged +#ifndef CFG_TUH_CDC_LOG_LEVEL + #define CFG_TUH_CDC_LOG_LEVEL CFG_TUH_LOG_LEVEL +#endif + +#define TU_LOG_DRV(...) TU_LOG(CFG_TUH_CDC_LOG_LEVEL, __VA_ARGS__) //--------------------------------------------------------------------+ // Host CDC Interface |
