diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-11-09 10:44:23 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-11-09 10:44:23 +0100 |
commit | fe829bdbdc436f425e082ab1cc8c3d276f168945 (patch) | |
tree | 5d73123ffc07ec247e095c76f65bd4800f567d1b /passes/sat | |
parent | cb9e10b4624e6ba6fff215766790e3ff3b82e9a8 (diff) | |
download | yosys-fe829bdbdc436f425e082ab1cc8c3d276f168945.tar.gz yosys-fe829bdbdc436f425e082ab1cc8c3d276f168945.tar.bz2 yosys-fe829bdbdc436f425e082ab1cc8c3d276f168945.zip |
Added log_warning() API
Diffstat (limited to 'passes/sat')
-rw-r--r-- | passes/sat/eval.cc | 2 | ||||
-rw-r--r-- | passes/sat/sat.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/passes/sat/eval.cc b/passes/sat/eval.cc index 7a5a02a9b..62534ec0b 100644 --- a/passes/sat/eval.cc +++ b/passes/sat/eval.cc @@ -277,7 +277,7 @@ struct VlogHammerReporter while (!ce.eval(sig, undef)) { // log_error("Evaluation of y in module %s failed: sig=%s, undef=%s\n", RTLIL::id2cstr(module->name), log_signal(sig), log_signal(undef)); - log("Warning: Setting signal %s in module %s to undef.\n", log_signal(undef), RTLIL::id2cstr(module->name)); + log_warning("Setting signal %s in module %s to undef.\n", log_signal(undef), RTLIL::id2cstr(module->name)); ce.set(undef, RTLIL::Const(RTLIL::State::Sx, undef.size())); } diff --git a/passes/sat/sat.cc b/passes/sat/sat.cc index d5d1d9160..b73417e87 100644 --- a/passes/sat/sat.cc +++ b/passes/sat/sat.cc @@ -116,7 +116,7 @@ struct SatHelper } if (removed_bits.size()) - log("Warning: ignoring initial value on non-register: %s\n", log_signal(removed_bits)); + log_warning("ignoring initial value on non-register: %s\n", log_signal(removed_bits)); if (lhs.size()) { log("Import set-constraint from init attribute: %s = %s\n", log_signal(lhs), log_signal(rhs)); @@ -327,7 +327,7 @@ struct SatHelper show_drivers.insert(sigmap(p.second), c.second); import_cell_counter++; } else if (ignore_unknown_cells) - log("Warning: Failed to import cell %s (type %s) to SAT database.\n", RTLIL::id2cstr(c.first), RTLIL::id2cstr(c.second->type)); + log_warning("Failed to import cell %s (type %s) to SAT database.\n", RTLIL::id2cstr(c.first), RTLIL::id2cstr(c.second->type)); else log_error("Failed to import cell %s (type %s) to SAT database.\n", RTLIL::id2cstr(c.first), RTLIL::id2cstr(c.second->type)); } |