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
|
@ -150,9 +150,9 @@ struct ConnectPass : public Pass {
|
|||
|
||||
RTLIL::SigSpec sig_lhs, sig_rhs;
|
||||
if (!RTLIL::SigSpec::parse_sel(sig_lhs, design, module, set_lhs))
|
||||
log_cmd_error("Failed to parse set lhs expression `%s'.\n", set_lhs.c_str());
|
||||
log_cmd_error("Failed to parse set lhs expression `%s'.\n", set_lhs);
|
||||
if (!RTLIL::SigSpec::parse_rhs(sig_lhs, sig_rhs, module, set_rhs))
|
||||
log_cmd_error("Failed to parse set rhs expression `%s'.\n", set_rhs.c_str());
|
||||
log_cmd_error("Failed to parse set rhs expression `%s'.\n", set_rhs);
|
||||
|
||||
sigmap.apply(sig_lhs);
|
||||
sigmap.apply(sig_rhs);
|
||||
|
@ -173,7 +173,7 @@ struct ConnectPass : public Pass {
|
|||
|
||||
RTLIL::SigSpec sig;
|
||||
if (!RTLIL::SigSpec::parse_sel(sig, design, module, unset_expr))
|
||||
log_cmd_error("Failed to parse unset expression `%s'.\n", unset_expr.c_str());
|
||||
log_cmd_error("Failed to parse unset expression `%s'.\n", unset_expr);
|
||||
|
||||
sigmap.apply(sig);
|
||||
unset_drivers(design, module, sigmap, sig);
|
||||
|
@ -185,11 +185,11 @@ struct ConnectPass : public Pass {
|
|||
log_cmd_error("Can't use -port together with -nounset.\n");
|
||||
|
||||
if (module->cell(RTLIL::escape_id(port_cell)) == nullptr)
|
||||
log_cmd_error("Can't find cell %s.\n", port_cell.c_str());
|
||||
log_cmd_error("Can't find cell %s.\n", port_cell);
|
||||
|
||||
RTLIL::SigSpec sig;
|
||||
if (!RTLIL::SigSpec::parse_sel(sig, design, module, port_expr))
|
||||
log_cmd_error("Failed to parse port expression `%s'.\n", port_expr.c_str());
|
||||
log_cmd_error("Failed to parse port expression `%s'.\n", port_expr);
|
||||
|
||||
if (!flag_assert) {
|
||||
module->cell(RTLIL::escape_id(port_cell))->setPort(RTLIL::escape_id(port_port), sigmap(sig));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue