From a16227b2091d3a7a0c5207ad06842a496607587b Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Fri, 6 Jun 2025 15:14:40 +0200 Subject: [PATCH] Revert "Change the implementation of log_debug in kernel/log.h from a macro function to a normal function." This reverts commit 15cfce061a118111984e013a46fd0bbdc064a9ed. --- kernel/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/log.h b/kernel/log.h index 6c834c6c6..e26ef072c 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -148,7 +148,7 @@ static inline bool ys_debug(int n = 0) { if (log_force_debug) return true; log_d #else static inline bool ys_debug(int = 0) { return false; } #endif -static inline void log_debug(const char *format, ...) { if (ys_debug(1)) { va_list args; va_start(args, format); logv(format, args); va_end(args); } } +# define log_debug(...) do { if (ys_debug(1)) log(__VA_ARGS__); } while (0) static inline void log_suppressed() { if (log_debug_suppressed && !log_make_debug) {