From 9b4d8030e6d106e8ddae7b9940fe8f07d2621660 Mon Sep 17 00:00:00 2001 From: Wendy Elsasser Date: Thu, 19 Mar 2015 04:06:12 -0400 Subject: [PATCH] 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. --- src/cpu/testers/traffic_gen/traffic_gen.cc | 9 ++------- 1 file 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 -- 2.30.2