mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-09 07:45:08 +00:00
Remove .c_str() calls from log()/log_error()
There are some leftovers, but this is an easy regex-based approach that removes most of them.
This commit is contained in:
parent
c2291c10a6
commit
e0ae7b7af4
140 changed files with 623 additions and 623 deletions
|
|
@ -187,11 +187,11 @@ struct PluginPass : public Pass {
|
|||
log("Loaded plugins:\n");
|
||||
|
||||
for (auto &it : loaded_plugins)
|
||||
log(" %s\n", it.first.c_str());
|
||||
log(" %s\n", it.first);
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
for (auto &it : loaded_python_plugins)
|
||||
log(" %s\n", it.first.c_str());
|
||||
log(" %s\n", it.first);
|
||||
#endif
|
||||
|
||||
if (!loaded_plugin_aliases.empty()) {
|
||||
|
|
@ -200,7 +200,7 @@ struct PluginPass : public Pass {
|
|||
for (auto &it : loaded_plugin_aliases)
|
||||
max_alias_len = max(max_alias_len, GetSize(it.first));
|
||||
for (auto &it : loaded_plugin_aliases)
|
||||
log("Alias: %-*s %s\n", max_alias_len, it.first.c_str(), it.second.c_str());
|
||||
log("Alias: %-*s %s\n", max_alias_len, it.first, it.second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue