3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-04 10:20:24 +00:00

Make log_header() use variadic templates.

This commit is contained in:
Robert O'Callahan 2025-07-22 02:26:50 +00:00
parent 2e28feed94
commit b4fcfc3a33
3 changed files with 10 additions and 12 deletions

View file

@ -196,7 +196,7 @@ struct OptPass : public Pass {
design->sort();
design->check();
log_header(design, fast_mode ? "Finished fast OPT passes.\n" : "Finished OPT passes. (There is nothing left to do.)\n");
log_header(design, "Finished fast OPT passes.%s\n", fast_mode ? "" : " (There is nothing left to do.)");
log_pop();
}
} OptPass;