3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-23 09:51:29 +00:00

Remove string_buf by making log_signal() and log_const() return std::string

We only have to fix one caller in-tree so this probably has very low impact on out-of-tree plugins.

Resolves #5215
This commit is contained in:
Robert O'Callahan 2025-09-16 03:06:17 +00:00
parent 09742e27f7
commit 8492c49f6c
3 changed files with 7 additions and 32 deletions

View file

@ -755,7 +755,7 @@ void AbcModuleState::handle_loops(AbcSigMap &assign_map, RTLIL::Module *module)
log("Breaking loop using new signal %s: %s -> %s\n", log_signal(RTLIL::SigSpec(wire)),
run_abc.signal_list[id1].bit_str, run_abc.signal_list[id2].bit_str);
else
log(" %*s %s -> %s\n", int(strlen(log_signal(RTLIL::SigSpec(wire)))), "",
log(" %*s %s -> %s\n", int(log_signal(RTLIL::SigSpec(wire)).size()), "",
run_abc.signal_list[id1].bit_str, run_abc.signal_list[id2].bit_str);
first_line = false;
}