mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-18 07:31:31 +00:00
Remove .c_str() calls from parameters to log_header()
This commit is contained in:
parent
5ac6858f26
commit
d1fd6de6da
7 changed files with 7 additions and 7 deletions
|
@ -1822,7 +1822,7 @@ std::string AstModule::derive_common(RTLIL::Design *design, const dict<RTLIL::Id
|
|||
return modname;
|
||||
|
||||
if (!quiet)
|
||||
log_header(design, "Executing AST frontend in derive mode using pre-parsed AST for module `%s'.\n", stripped_name.c_str());
|
||||
log_header(design, "Executing AST frontend in derive mode using pre-parsed AST for module `%s'.\n", stripped_name);
|
||||
loadconfig();
|
||||
|
||||
pool<IdString> rewritten;
|
||||
|
|
|
@ -537,7 +537,7 @@ struct LibertyFrontend : public Frontend {
|
|||
if (flag_wb && flag_lib)
|
||||
log_error("-wb and -lib cannot be specified together!\n");
|
||||
|
||||
log_header(design, "Executing Liberty frontend: %s\n", filename.c_str());
|
||||
log_header(design, "Executing Liberty frontend: %s\n", filename);
|
||||
|
||||
LibertyParser parser(*f, filename);
|
||||
int cell_count = 0;
|
||||
|
|
|
@ -163,7 +163,7 @@ struct RpcModule : RTLIL::Module {
|
|||
stripped_name = stripped_name.substr(9);
|
||||
log_assert(stripped_name[0] == '\\');
|
||||
|
||||
log_header(design, "Executing RPC frontend `%s' for module `%s'.\n", server->name.c_str(), stripped_name.c_str());
|
||||
log_header(design, "Executing RPC frontend `%s' for module `%s'.\n", server->name, stripped_name);
|
||||
|
||||
std::string parameter_info;
|
||||
for (auto ¶m : parameters) {
|
||||
|
|
|
@ -485,7 +485,7 @@ struct VerilogFrontend : public Frontend {
|
|||
|
||||
extra_args(f, filename, args, argidx);
|
||||
|
||||
log_header(design, "Executing Verilog-2005 frontend: %s\n", filename.c_str());
|
||||
log_header(design, "Executing Verilog-2005 frontend: %s\n", filename);
|
||||
|
||||
log("Parsing %s%s input from `%s' to AST representation.\n",
|
||||
parse_mode.formal ? "formal " : "", parse_mode.sv ? "SystemVerilog" : "Verilog", filename.c_str());
|
||||
|
|
|
@ -199,7 +199,7 @@ void Pass::call(RTLIL::Design *design, std::string command)
|
|||
while (!cmd_buf.empty() && (cmd_buf.back() == ' ' || cmd_buf.back() == '\t' ||
|
||||
cmd_buf.back() == '\r' || cmd_buf.back() == '\n'))
|
||||
cmd_buf.resize(cmd_buf.size()-1);
|
||||
log_header(design, "Shell command: %s\n", cmd_buf.c_str());
|
||||
log_header(design, "Shell command: %s\n", cmd_buf);
|
||||
int retCode = run_command(cmd_buf);
|
||||
if (retCode != 0)
|
||||
log_cmd_error("Shell command returned error code %d.\n", retCode);
|
||||
|
|
|
@ -150,7 +150,7 @@ struct ExecPass : public Pass {
|
|||
}
|
||||
}
|
||||
|
||||
log_header(design, "Executing command \"%s\".\n", cmd.c_str());
|
||||
log_header(design, "Executing command \"%s\".\n", cmd);
|
||||
log_push();
|
||||
|
||||
fflush(stdout);
|
||||
|
|
|
@ -107,7 +107,7 @@ struct LogPass : public Pass {
|
|||
if (to_stderr) fprintf(stderr, "%s%s", text.c_str(), line_end);
|
||||
if (to_log) {
|
||||
if (!header) log("%s%s", text, line_end);
|
||||
else log_header(design, "%s%s", text.c_str(), line_end);
|
||||
else log_header(design, "%s%s", text, line_end);
|
||||
}
|
||||
}
|
||||
} LogPass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue