Using RTLIL::id2cstr for prompt printing
authorClifford Wolf <clifford@clifford.at>
Fri, 29 Nov 2013 10:55:18 +0000 (11:55 +0100)
committerClifford Wolf <clifford@clifford.at>
Fri, 29 Nov 2013 10:55:18 +0000 (11:55 +0100)
kernel/driver.cc

index 83374c4be132ad2ec6966557f4528dbc229c78a0..6aa54bfb80ae18c26f00113e1e7803e34da31b6d 100644 (file)
@@ -209,7 +209,7 @@ static const char *create_prompt(RTLIL::Design *design, int recursion_counter)
                str += stringf("(%d) ", recursion_counter);
        str += "yosys";
        if (!design->selected_active_module.empty())
-               str += stringf(" [%s]", design->selected_active_module.c_str());
+               str += stringf(" [%s]", RTLIL::id2cstr(design->selected_active_module));
        if (!design->selection_stack.back().full_selection) {
                if (design->selected_active_module.empty())
                        str += "*";