From: Clifford Wolf Date: Fri, 29 Nov 2013 10:55:18 +0000 (+0100) Subject: Using RTLIL::id2cstr for prompt printing X-Git-Tag: yosys-0.2.0~278 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b3a60976d0f74791277515cfad20dc7e37e1b9a;p=yosys.git Using RTLIL::id2cstr for prompt printing --- diff --git a/kernel/driver.cc b/kernel/driver.cc index 83374c4be..6aa54bfb8 100644 --- a/kernel/driver.cc +++ b/kernel/driver.cc @@ -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 += "*";