summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-11-07 16:31:17 +0700
committerGitHub <[email protected]>2025-11-07 16:31:17 +0700
commit5d351828cbb077e41463a31d285ca001250e85da (patch)
tree775c1c07b4c8b7d9c59d42d948ac8cda5bcb0ebf /src/common
parent9fac6dd49d9cd681ed9140c124d3001b6d1491be (diff)
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tusb_debug.h b/src/common/tusb_debug.h
index 905dc239c..08117283f 100644
--- a/src/common/tusb_debug.h
+++ b/src/common/tusb_debug.h
@@ -76,7 +76,7 @@ TU_ATTR_ALWAYS_INLINE static inline void tu_print_buf(uint8_t const* buf, uint32
#define TU_LOG_FAILED() (void) tu_printf("%s: %d: Failed\r\n", __PRETTY_FUNCTION__, __LINE__)
// Log Level 1: Error
-#define TU_LOG1 (void) tu_printf
+#define TU_LOG1(...) (void) tu_printf(__VA_ARGS__)
#define TU_LOG1_MEM tu_print_mem
#define TU_LOG1_BUF(_x, _n) tu_print_buf((uint8_t const*)(_x), _n)
#define TU_LOG1_INT(_x) (void) tu_printf(#_x " = %ld\r\n", (unsigned long) (_x) )