aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/log.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-02-17 12:54:36 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2020-02-17 12:54:36 +0100
commitbe977cf7eb76e10866555543aef4809264b393de (patch)
tree8e3d912f7d8004b9e3880644e34604661db54c4d /kernel/log.cc
parent6b396e64556ad556eb3260db714c1f824ee4f458 (diff)
downloadyosys-be977cf7eb76e10866555543aef4809264b393de.tar.gz
yosys-be977cf7eb76e10866555543aef4809264b393de.tar.bz2
yosys-be977cf7eb76e10866555543aef4809264b393de.zip
No new error if already failing
Diffstat (limited to 'kernel/log.cc')
-rw-r--r--kernel/log.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/log.cc b/kernel/log.cc
index 997c39c64..89a403e63 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -331,7 +331,8 @@ static void logv_error_with_prefix(const char *prefix,
f = stderr;
log_last_error = vstringf(format, ap);
- log("%s%s", prefix, log_last_error.c_str());
+ if (check_expected_logs)
+ log("%s%s", prefix, log_last_error.c_str());
log_flush();
log_make_debug = bak_log_make_debug;