Skip to content

Commit 6378ba1

Browse files
authored
Merge pull request YosysHQ#5078 from RonxBulld/main
Change the implementation of log_debug in kernel/log.h
2 parents 8da97d0 + 15cfce0 commit 6378ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static inline bool ys_debug(int n = 0) { if (log_force_debug) return true; log_d
148148
#else
149149
static inline bool ys_debug(int = 0) { return false; }
150150
#endif
151-
# define log_debug(...) do { if (ys_debug(1)) log(__VA_ARGS__); } while (0)
151+
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); } }
152152

153153
static inline void log_suppressed() {
154154
if (log_debug_suppressed && !log_make_debug) {

0 commit comments

Comments
 (0)