From e38594f758d0e01db763724d73cae19c02d65ca0 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 5 Sep 2018 00:06:26 -0700 Subject: systemc: "Fix" some error message formatting. These changes make the output match what Accellera outputs so that the tests will pass. Change-Id: I1260cec35fa39586fbef39047b9da4ff3c03b3ed Reviewed-on: https://gem5-review.googlesource.com/c/12592 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/dt/bit/sc_logic.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/systemc/dt/bit/sc_logic.cc') diff --git a/src/systemc/dt/bit/sc_logic.cc b/src/systemc/dt/bit/sc_logic.cc index 81663fcee..4943d3df1 100644 --- a/src/systemc/dt/bit/sc_logic.cc +++ b/src/systemc/dt/bit/sc_logic.cc @@ -72,7 +72,7 @@ sc_logic::invalid_value(char c) { std::stringstream msg; msg << "sc_logic('" << c << "')"; - SC_REPORT_ERROR("value is not valid", msg.str().c_str()); + SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str()); } void @@ -80,7 +80,7 @@ sc_logic::invalid_value(int i) { std::stringstream msg; msg << "sc_logic(" << i << ")"; - SC_REPORT_ERROR("value is not valid", msg.str().c_str()); + SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str()); } @@ -88,9 +88,11 @@ void sc_logic::invalid_01() const { if ((int)m_val == Log_Z) { - SC_REPORT_WARNING("sc_logic value 'Z' cannot be converted to bool", 0); + SC_REPORT_WARNING( + "(W211) sc_logic value 'Z' cannot be converted to bool", 0); } else { - SC_REPORT_WARNING("sc_logic value 'X' cannot be converted to bool", 0); + SC_REPORT_WARNING( + "(W212) sc_logic value 'X' cannot be converted to bool", 0); } } -- cgit v1.2.3