From b4c081c70b6b34ea131563fa89277be2be7e5639 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Fri, 17 Apr 2026 13:35:47 +0200 Subject: [PATCH] abc: fix deferred logs --- passes/techmap/abc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index d58f6b355..8e333f7cb 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -1349,7 +1349,7 @@ void RunAbcState::run(ConcurrentStack &) logs.log("Extracted %d gates and %d wires to a netlist network with %d inputs and %d outputs.\n", count_gates, GetSize(signal_list), count_input, count_output); if (count_output == 0) { - log("Don't call ABC as there is nothing to map.\n"); + logs.log("Don't call ABC as there is nothing to map.\n"); return; } int ret; @@ -1363,7 +1363,7 @@ void RunAbcState::run(ConcurrentStack &) string temp_stdouterr_name = stringf("%s/stdouterr.txt", per_run_tempdir_name); FILE *temp_stdouterr_w = fopen(temp_stdouterr_name.c_str(), "w"); if (temp_stdouterr_w == NULL) - log_error("ABC: cannot open a temporary file for output redirection"); + logs.log_error("ABC: cannot open a temporary file for output redirection"); fflush(stdout); fflush(stderr); FILE *old_stdout = fopen(temp_stdouterr_name.c_str(), "r"); // need any fd for renumbering