mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-30 13:19:05 +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
|
@ -592,7 +592,7 @@ static void select_op_expand(RTLIL::Design *design, const std::string &arg, char
|
|||
|
||||
while (pos < int(arg.size())) {
|
||||
if (arg[pos] != ':' || pos+1 == int(arg.size()))
|
||||
log_cmd_error("Syntax error in expand operator '%s'.\n", arg.c_str());
|
||||
log_cmd_error("Syntax error in expand operator '%s'.\n", arg);
|
||||
pos++;
|
||||
if (arg[pos] == '+' || arg[pos] == '-') {
|
||||
expand_rule_t rule;
|
||||
|
@ -617,7 +617,7 @@ static void select_op_expand(RTLIL::Design *design, const std::string &arg, char
|
|||
for (auto i2 : i1.second)
|
||||
limits.insert(i2);
|
||||
} else
|
||||
log_cmd_error("Selection %s is not defined!\n", RTLIL::unescape_id(str).c_str());
|
||||
log_cmd_error("Selection %s is not defined!\n", RTLIL::unescape_id(str));
|
||||
} else
|
||||
limits.insert(RTLIL::escape_id(str));
|
||||
}
|
||||
|
@ -804,7 +804,7 @@ static void select_stmt(RTLIL::Design *design, std::string arg, bool disable_emp
|
|||
log_cmd_error("Must have at least one element on the stack for operator %%coe.\n");
|
||||
select_op_expand(design, arg, 'o', true);
|
||||
} else
|
||||
log_cmd_error("Unknown selection operator '%s'.\n", arg.c_str());
|
||||
log_cmd_error("Unknown selection operator '%s'.\n", arg);
|
||||
if (work_stack.size() >= 1)
|
||||
select_filter_active_mod(design, work_stack.back());
|
||||
return;
|
||||
|
@ -815,7 +815,7 @@ static void select_stmt(RTLIL::Design *design, std::string arg, bool disable_emp
|
|||
if (design->selection_vars.count(set_name) > 0)
|
||||
work_stack.push_back(design->selection_vars[set_name]);
|
||||
else
|
||||
log_cmd_error("Selection @%s is not defined!\n", RTLIL::unescape_id(set_name).c_str());
|
||||
log_cmd_error("Selection @%s is not defined!\n", RTLIL::unescape_id(set_name));
|
||||
select_filter_active_mod(design, work_stack.back());
|
||||
return;
|
||||
}
|
||||
|
@ -934,7 +934,7 @@ static void select_stmt(RTLIL::Design *design, std::string arg, bool disable_emp
|
|||
if (arg_memb.compare(2, 1, "@") == 0) {
|
||||
std::string set_name = RTLIL::escape_id(arg_memb.substr(3));
|
||||
if (!design->selection_vars.count(set_name))
|
||||
log_cmd_error("Selection @%s is not defined!\n", RTLIL::unescape_id(set_name).c_str());
|
||||
log_cmd_error("Selection @%s is not defined!\n", RTLIL::unescape_id(set_name));
|
||||
|
||||
auto &muster = design->selection_vars[set_name];
|
||||
for (auto cell : mod->cells())
|
||||
|
@ -1428,7 +1428,7 @@ struct SelectPass : public Pass {
|
|||
continue;
|
||||
}
|
||||
if (arg.size() > 0 && arg[0] == '-')
|
||||
log_cmd_error("Unknown option %s.\n", arg.c_str());
|
||||
log_cmd_error("Unknown option %s.\n", arg);
|
||||
bool disable_empty_warning = count_mode || assert_none || assert_any || (assert_modcount != -1) ||
|
||||
(assert_count != -1) || (assert_max != -1) || (assert_min != -1);
|
||||
select_stmt(design, arg, disable_empty_warning);
|
||||
|
@ -1762,7 +1762,7 @@ struct CdPass : public Pass {
|
|||
return;
|
||||
}
|
||||
|
||||
log_cmd_error("No such module `%s' found!\n", RTLIL::unescape_id(modname).c_str());
|
||||
log_cmd_error("No such module `%s' found!\n", RTLIL::unescape_id(modname));
|
||||
}
|
||||
} CdPass;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue