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.
This commit is contained in:
Wendy Elsasser 2015-03-19 04:06:12 -04:00
parent 5275c9d740
commit 9b4d8030e6

View file

@ -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