mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-30 05:09:04 +00:00
Remove .c_str() from log_cmd_error() and log_file_error() parameters
This commit is contained in:
parent
b95549b469
commit
5ac6858f26
59 changed files with 163 additions and 163 deletions
|
@ -45,10 +45,10 @@ struct CopyPass : public Pass {
|
|||
std::string trg_name = RTLIL::escape_id(args[2]);
|
||||
|
||||
if (design->module(src_name) == nullptr)
|
||||
log_cmd_error("Can't find source module %s.\n", src_name.c_str());
|
||||
log_cmd_error("Can't find source module %s.\n", src_name);
|
||||
|
||||
if (design->module(trg_name) != nullptr)
|
||||
log_cmd_error("Target module name %s already exists.\n", trg_name.c_str());
|
||||
log_cmd_error("Target module name %s already exists.\n", trg_name);
|
||||
|
||||
RTLIL::Module *new_mod = design->module(src_name)->clone();
|
||||
new_mod->name = trg_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue