aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/log.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-08-18 11:47:46 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-08-18 11:47:46 +0200
commit4a32e29445f65edd1726808a7353a9d0e2560c00 (patch)
tree179544dd193fe72b3658269cb22a6eae66bee8a1 /kernel/log.h
parent5f561bdcb1d562d6f975b4a27beca1b8b7af908f (diff)
parent98a54353b7d893752d856b3726853d4921c6aa1f (diff)
downloadyosys-4a32e29445f65edd1726808a7353a9d0e2560c00.tar.gz
yosys-4a32e29445f65edd1726808a7353a9d0e2560c00.tar.bz2
yosys-4a32e29445f65edd1726808a7353a9d0e2560c00.zip
Merge remote-tracking branch 'upstream/master' into anlogic_fixes
Diffstat (limited to 'kernel/log.h')
-rw-r--r--kernel/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/log.h b/kernel/log.h
index 3e1facae8..5f53f533a 100644
--- a/kernel/log.h
+++ b/kernel/log.h
@@ -91,7 +91,7 @@ YS_NORETURN void log_cmd_error(const char *format, ...) YS_ATTRIBUTE(format(prin
static inline bool ys_debug(int n = 0) { if (log_force_debug) return true; log_debug_suppressed += n; return false; }
# define log_debug(...) do { if (ys_debug(1)) log(__VA_ARGS__); } while (0)
#else
-static inline bool ys_debug(int n = 0) { return false; }
+static inline bool ys_debug(int = 0) { return false; }
# define log_debug(_fmt, ...) do { } while (0)
#endif