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

Remove .c_str() calls from log()/log_error()

There are some leftovers, but this is an easy regex-based approach that removes most of them.
This commit is contained in:
Robert O'Callahan 2025-09-11 05:25:26 +00:00
parent c2291c10a6
commit e0ae7b7af4
140 changed files with 623 additions and 623 deletions

View file

@ -85,7 +85,7 @@ struct RaiseErrorPass : public Pass {
if (use_stderr) {
std::cerr << err_msg << std::endl;
} else {
log_error("%s\n", err_msg.c_str());
log_error("%s\n", err_msg);
}
}

View file

@ -109,7 +109,7 @@ static void autotest(std::ostream &f, RTLIL::Design *design, int num_iter, int s
continue;
int count_ports = 0;
log("Generating test bench for module `%s'.\n", mod->name.c_str());
log("Generating test bench for module `%s'.\n", mod->name);
for (auto wire : mod->wires()) {
if (wire->port_output) {
count_ports++;

View file

@ -722,7 +722,7 @@ static void run_eval_test(RTLIL::Design *design, bool verbose, bool nosat, std::
}
if (verbose)
log("EVAL: %s\n", out_val.as_string().c_str());
log("EVAL: %s\n", out_val.as_string());
if (!nosat)
{