mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-30 05:09:04 +00:00
Remove .c_str() calls from parameters to log_file_info()
This commit is contained in:
parent
548deba259
commit
d276529d46
2 changed files with 2 additions and 2 deletions
|
@ -2195,7 +2195,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
|
||||||
int sz = children.size();
|
int sz = children.size();
|
||||||
if (str == "$info") {
|
if (str == "$info") {
|
||||||
if (sz > 0)
|
if (sz > 0)
|
||||||
log_file_info(*location.begin.filename, location.begin.line, "%s.\n", children[0]->str.c_str());
|
log_file_info(*location.begin.filename, location.begin.line, "%s.\n", children[0]->str);
|
||||||
else
|
else
|
||||||
log_file_info(*location.begin.filename, location.begin.line, "\n");
|
log_file_info(*location.begin.filename, location.begin.line, "\n");
|
||||||
} else if (str == "$warning") {
|
} else if (str == "$warning") {
|
||||||
|
|
|
@ -161,7 +161,7 @@ Fmt AstNode::processFormat(int stage, bool sformat_like, int default_base, size_
|
||||||
arg.sig = node_arg->bitsAsConst();
|
arg.sig = node_arg->bitsAsConst();
|
||||||
arg.signed_ = node_arg->is_signed;
|
arg.signed_ = node_arg->is_signed;
|
||||||
} else if (may_fail) {
|
} else if (may_fail) {
|
||||||
log_file_info(*location.begin.filename, location.begin.line, "Skipping system task `%s' with non-constant argument at position %zu.\n", str.c_str(), index + 1);
|
log_file_info(*location.begin.filename, location.begin.line, "Skipping system task `%s' with non-constant argument at position %zu.\n", str, index + 1);
|
||||||
return Fmt();
|
return Fmt();
|
||||||
} else {
|
} else {
|
||||||
log_file_error(*location.begin.filename, location.begin.line, "Failed to evaluate system task `%s' with non-constant argument at position %zu.\n", str, index + 1);
|
log_file_error(*location.begin.filename, location.begin.line, "Failed to evaluate system task `%s' with non-constant argument at position %zu.\n", str, index + 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue