Update `RTLIL::id2cstr()` usage to `log_id`.
authorAlberto Gonzalez <boqwxp@airmail.cc>
Wed, 1 Apr 2020 06:53:28 +0000 (06:53 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Wed, 1 Apr 2020 06:53:28 +0000 (06:53 +0000)
backends/smt2/smt2.cc

index 6287658313c6e1c86da19f16237a926c6f8c218a..eb482605120cae0e9c8af7da93221f278b2db965 100644 (file)
@@ -1523,12 +1523,12 @@ struct Smt2Backend : public Backend {
                                for (auto &dep : it.second)
                                        if (module_deps.count(dep) > 0)
                                                goto not_ready_yet;
-                               // log("Next in topological sort: %s\n", RTLIL::id2cstr(it.first->name));
+                               // log("Next in topological sort: %s\n", log_id(it.first->name));
                                sorted_modules.push_back(it.first);
                        not_ready_yet:;
                        }
                        if (sorted_modules_idx == sorted_modules.size())
-                               log_error("Cyclic dependency between modules found! Cycle includes module %s.\n", RTLIL::id2cstr(module_deps.begin()->first->name));
+                               log_error("Cyclic dependency between modules found! Cycle includes module %s.\n", log_id(module_deps.begin()->first->name));
                        while (sorted_modules_idx < sorted_modules.size())
                                module_deps.erase(sorted_modules.at(sorted_modules_idx++));
                }