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/int/sc_nbutils.cc | 2 +- src/systemc/dt/int/sc_signed.cc | 2 +- src/systemc/dt/int/sc_unsigned.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/systemc/dt/int') diff --git a/src/systemc/dt/int/sc_nbutils.cc b/src/systemc/dt/int/sc_nbutils.cc index df7cc554d..5d2c50fc9 100644 --- a/src/systemc/dt/int/sc_nbutils.cc +++ b/src/systemc/dt/int/sc_nbutils.cc @@ -89,7 +89,7 @@ is_valid_base(sc_numrep base) std::stringstream msg; msg << "is_valid_base( sc_numrep base ) : base = " << base << " is not valid"; - SC_REPORT_ERROR("value is not valid", msg.str().c_str() ); + SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str() ); } } diff --git a/src/systemc/dt/int/sc_signed.cc b/src/systemc/dt/int/sc_signed.cc index 1cb71123b..74660b371 100644 --- a/src/systemc/dt/int/sc_signed.cc +++ b/src/systemc/dt/int/sc_signed.cc @@ -132,7 +132,7 @@ sc_signed::invalid_range(int l, int r) const { std::stringstream msg; msg << "sc_bigint part selection: left = " << - l << ", right = " << r << "\n" + l << ", right = " << r << " \n" " violates either (" << (nbits-1) << " >= left >= 0) or " "(" << (nbits-1) << " >= right >= 0)"; SC_REPORT_ERROR("(E5) out of bounds", msg.str().c_str()); diff --git a/src/systemc/dt/int/sc_unsigned.cc b/src/systemc/dt/int/sc_unsigned.cc index aca49bac6..ffea95a68 100644 --- a/src/systemc/dt/int/sc_unsigned.cc +++ b/src/systemc/dt/int/sc_unsigned.cc @@ -140,7 +140,7 @@ sc_unsigned::invalid_range(int l, int r) const { std::stringstream msg; msg << "sc_biguint part selection: left = " << - l << ", right = " << r << "\n" + l << ", right = " << r << " \n" " violates either (" << (nbits - 2) << " >= left >= 0) or " "(" << (nbits-2) << " >= right >= 0)"; SC_REPORT_ERROR("(E5) out of bounds", msg.str().c_str()); -- cgit v1.2.3