diff options
| author | hathach <[email protected]> | 2021-06-11 18:44:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-06-11 18:44:08 +0700 |
| commit | b39faa15effec35dceb95655b0db75c3fe564f3d (patch) | |
| tree | 66d5dec027b14b3d5e8087323b4c8b9c1e84aff3 /src | |
| parent | a6d22f5a6879388e657987378cecea827794ad1e (diff) | |
map pico_info to log2, pico_trace to log3
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/raspberrypi/rp2040/rp2040_usb.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/portable/raspberrypi/rp2040/rp2040_usb.h b/src/portable/raspberrypi/rp2040/rp2040_usb.h index 278ba59ec..4c24b8dbe 100644 --- a/src/portable/raspberrypi/rp2040/rp2040_usb.h +++ b/src/portable/raspberrypi/rp2040/rp2040_usb.h @@ -17,17 +17,8 @@ #endif -#if true || false && !defined(NDEBUG) -#define pico_trace(format,args...) printf(format, ## args) -#else -#define pico_trace(format,...) ((void)0) -#endif - -#if false && !defined(NDEBUG) -#define pico_info(format,args...) printf(format, ## args) -#else -#define pico_info(format,...) ((void)0) -#endif +#define pico_info(...) TU_LOG(2, __VA_ARGS__) +#define pico_trace(...) TU_LOG(3, __VA_ARGS__) // Hardware information per endpoint struct hw_endpoint |
