mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-04 10:20:24 +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
422ec05322
commit
2e28feed94
9 changed files with 67 additions and 38 deletions
|
@ -553,11 +553,11 @@ static void dfflibmap(RTLIL::Design *design, RTLIL::Module *module)
|
|||
new_cell->setPort("\\" + port.first, sig);
|
||||
}
|
||||
|
||||
stats[stringf(" mapped %%d %s cells to %s cells.\n", cell_type.c_str(), new_cell->type.c_str())]++;
|
||||
stats[stringf("%s cells to %s cells", cell_type.c_str(), new_cell->type.c_str())]++;
|
||||
}
|
||||
|
||||
for (auto &stat: stats)
|
||||
log(stat.first.c_str(), stat.second);
|
||||
log(" mapped %d %s.\n", stat.second, stat.first);
|
||||
}
|
||||
|
||||
struct DfflibmapPass : public Pass {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue