summaryrefslogtreecommitdiff
path: root/src/systemc/dt/bit/sc_bit.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-05 00:06:26 -0700
committerGabe Black <gabeblack@google.com>2018-10-03 00:55:01 +0000
commite38594f758d0e01db763724d73cae19c02d65ca0 (patch)
tree2f24b75b8b87ed126e14c7361a2835d67fd0c740 /src/systemc/dt/bit/sc_bit.cc
parent1b3ff4d6a8a4ba10a4754ceb316712bab06bc0b2 (diff)
downloadgem5-e38594f758d0e01db763724d73cae19c02d65ca0.tar.xz
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 <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/dt/bit/sc_bit.cc')
-rw-r--r--src/systemc/dt/bit/sc_bit.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/systemc/dt/bit/sc_bit.cc b/src/systemc/dt/bit/sc_bit.cc
index 7572a0e56..8382c880c 100644
--- a/src/systemc/dt/bit/sc_bit.cc
+++ b/src/systemc/dt/bit/sc_bit.cc
@@ -77,8 +77,8 @@ void
sc_bit::invalid_value(char c)
{
std::stringstream msg;
- msg << "sc_bit('" << c << "')";
- SC_REPORT_ERROR("value is not valid", msg.str().c_str());
+ msg << "sc_bit( '" << c << "' )";
+ SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str());
sc_core::sc_abort(); // can't recover from here
}
@@ -86,8 +86,8 @@ void
sc_bit::invalid_value(int i)
{
std::stringstream msg;
- msg << "sc_bit(" << i << ")";
- SC_REPORT_ERROR("value is not valid", msg.str().c_str());
+ msg << "sc_bit( " << i << " )";
+ SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str());
sc_core::sc_abort(); // can't recover from here
}