diff options
author | Wendy Elsasser <wendy.elsasser@arm.com> | 2015-03-19 04:06:12 -0400 |
---|---|---|
committer | Wendy Elsasser <wendy.elsasser@arm.com> | 2015-03-19 04:06:12 -0400 |
commit | 9b4d8030e6d106e8ddae7b9940fe8f07d2621660 (patch) | |
tree | 158d1cda6df750048a10a8158a768ad73340844c | |
parent | 5275c9d740589abd631571cf48ac57d393d28093 (diff) | |
download | gem5-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.
-rw-r--r-- | src/cpu/testers/traffic_gen/traffic_gen.cc | 9 |
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 |