mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-26 19:31:31 +00:00
Make log()
use the FmtString
infrastructure.
Now `log()` supports `std::string`. We have to fix a few places where the format parameter was not a compile time constant. This is mostly trivial.
This commit is contained in:
parent
c6e96d7816
commit
a8791a459e
10 changed files with 74 additions and 45 deletions
|
@ -634,10 +634,10 @@ struct SatHelper
|
|||
"---------------------------------------------------------------------------------------------------"
|
||||
"---------------------------------------------------------------------------------------------------";
|
||||
if (last_timestep == -2) {
|
||||
log(max_timestep > 0 ? " Time " : " ");
|
||||
log("%s", max_timestep > 0 ? " Time " : " ");
|
||||
log("%-*s %11s %9s %*s\n", maxModelName+5, "Signal Name", "Dec", "Hex", maxModelWidth+3, "Bin");
|
||||
}
|
||||
log(max_timestep > 0 ? " ---- " : " ");
|
||||
log("%s", max_timestep > 0 ? " ---- " : " ");
|
||||
log("%*.*s %11.11s %9.9s %*.*s\n", maxModelName+5, maxModelName+5,
|
||||
hline, hline, hline, maxModelWidth+3, maxModelWidth+3, hline);
|
||||
last_timestep = info.timestep;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue