summaryrefslogtreecommitdiff
path: root/src/cpu/testers
diff options
context:
space:
mode:
authorWendy Elsasser <wendy.elsasser@arm.com>2015-03-19 04:06:12 -0400
committerWendy Elsasser <wendy.elsasser@arm.com>2015-03-19 04:06:12 -0400
commit9b4d8030e6d106e8ddae7b9940fe8f07d2621660 (patch)
tree158d1cda6df750048a10a8158a768ad73340844c /src/cpu/testers
parent5275c9d740589abd631571cf48ac57d393d28093 (diff)
downloadgem5-9b4d8030e6d106e8ddae7b9940fe8f07d2621660.tar.xz
cpu: Fix TrafficGen message format
Fix erroneous message format for fatal error. Previously, code did not have type indicator (% instead of %d). Also removed redundant fatal check. Ran modified sweep.py with in range and out of range values to test.
Diffstat (limited to 'src/cpu/testers')
-rw-r--r--src/cpu/testers/traffic_gen/traffic_gen.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cpu/testers/traffic_gen/traffic_gen.cc b/src/cpu/testers/traffic_gen/traffic_gen.cc
index e4759512d..9f3192656 100644
--- a/src/cpu/testers/traffic_gen/traffic_gen.cc
+++ b/src/cpu/testers/traffic_gen/traffic_gen.cc
@@ -331,13 +331,8 @@ TrafficGen::parseConfig()
blocksize, page_size);
if (nbr_of_banks_util > nbr_of_banks_DRAM)
- fatal("Attempting to use more banks (%) than "
- "what is available (%)\n",
- nbr_of_banks_util, nbr_of_banks_DRAM);
-
- if (nbr_of_banks_util > nbr_of_banks_DRAM)
- fatal("Attempting to use more banks (%) than "
- "what is available (%)\n",
+ fatal("Attempting to use more banks (%d) than "
+ "what is available (%d)\n",
nbr_of_banks_util, nbr_of_banks_DRAM);
// count the number of sequential packets to