mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
Remove .c_str() from log_cmd_error() and log_file_error() parameters
This commit is contained in:
@@ -957,7 +957,7 @@ struct HierarchyPass : public Pass {
|
||||
for (auto ¶ : parameters) {
|
||||
SigSpec sig_value;
|
||||
if (!RTLIL::SigSpec::parse(sig_value, NULL, para.second))
|
||||
log_cmd_error("Can't decode value '%s'!\n", para.second.c_str());
|
||||
log_cmd_error("Can't decode value '%s'!\n", para.second);
|
||||
top_parameters[RTLIL::escape_id(para.first)] = sig_value.as_const();
|
||||
}
|
||||
}
|
||||
@@ -991,7 +991,7 @@ struct HierarchyPass : public Pass {
|
||||
}
|
||||
#endif
|
||||
if (top_mod == NULL)
|
||||
log_cmd_error("Module `%s' not found!\n", load_top_mod.c_str());
|
||||
log_cmd_error("Module `%s' not found!\n", load_top_mod);
|
||||
} else {
|
||||
#ifdef YOSYS_ENABLE_VERIFIC
|
||||
if (verific_import_pending)
|
||||
@@ -1045,7 +1045,7 @@ struct HierarchyPass : public Pass {
|
||||
for (auto ¶ : parameters) {
|
||||
SigSpec sig_value;
|
||||
if (!RTLIL::SigSpec::parse(sig_value, NULL, para.second))
|
||||
log_cmd_error("Can't decode value '%s'!\n", para.second.c_str());
|
||||
log_cmd_error("Can't decode value '%s'!\n", para.second);
|
||||
top_parameters[RTLIL::escape_id(para.first)] = sig_value.as_const();
|
||||
}
|
||||
|
||||
|
||||
@@ -408,7 +408,7 @@ struct SubmodPass : public Pass {
|
||||
RTLIL::Module *module = nullptr;
|
||||
for (auto mod : design->selected_modules()) {
|
||||
if (module != nullptr)
|
||||
log_cmd_error("More than one module selected: %s %s\n", module->name.c_str(), mod->name.c_str());
|
||||
log_cmd_error("More than one module selected: %s %s\n", module->name, mod->name);
|
||||
module = mod;
|
||||
}
|
||||
if (module == nullptr)
|
||||
|
||||
Reference in New Issue
Block a user