diff options
| author | hathach <[email protected]> | 2025-11-03 10:46:09 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-11-03 10:46:09 +0700 |
| commit | bda7efb1b3d482b7add2535a4a72f51a0dea5c08 (patch) | |
| tree | 6fe059dfa614e1b4b567906dda830adc4ab34e15 /src/common/tusb_verify.h | |
| parent | a6c16d147593732028ed89292805e0e6a972e4b5 (diff) | |
fix #2942, include stdio if CFG_TUSB_DEBUG > 0 and CFG_TUSB_DEBUG_PRINTF is not defined
Diffstat (limited to 'src/common/tusb_verify.h')
| -rw-r--r-- | src/common/tusb_verify.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/tusb_verify.h b/src/common/tusb_verify.h index db91a73d9..9dc73aa60 100644 --- a/src/common/tusb_verify.h +++ b/src/common/tusb_verify.h @@ -67,10 +67,8 @@ //--------------------------------------------------------------------+ // TU_VERIFY Helper //--------------------------------------------------------------------+ - #if CFG_TUSB_DEBUG - #include <stdio.h> - #define TU_MESS_FAILED() tu_printf("%s %d: ASSERT FAILED\r\n", __func__, __LINE__) + #define TU_MESS_FAILED() TU_LOG1("%s %d: ASSERT FAILED\r\n", __func__, __LINE__) #else #define TU_MESS_FAILED() do {} while (0) #endif |
