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_debug.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_debug.h')
| -rw-r--r-- | src/common/tusb_debug.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/tusb_debug.h b/src/common/tusb_debug.h index e3f9d3f18..df4034098 100644 --- a/src/common/tusb_debug.h +++ b/src/common/tusb_debug.h @@ -55,6 +55,7 @@ void tu_print_mem(void const *buf, uint32_t count, uint8_t indent); extern int CFG_TUSB_DEBUG_PRINTF(const char *format, ...); #define tu_printf CFG_TUSB_DEBUG_PRINTF #else + #include <stdio.h> #define tu_printf printf #endif |
