diff options
author | m8pple <dt10@imperial.ac.uk> | 2015-10-19 16:26:25 +0100 |
---|---|---|
committer | m8pple <dt10@imperial.ac.uk> | 2015-10-19 16:26:25 +0100 |
commit | ff25100560166576abdcc738583f89e279674866 (patch) | |
tree | 409103092546330c80fd56f85a40a9ec8fb20958 | |
parent | 974e8c2f125e57558dd273753d0c3095affcc847 (diff) | |
download | MipsCPU-ff25100560166576abdcc738583f89e279674866.tar.gz MipsCPU-ff25100560166576abdcc738583f89e279674866.zip |
Converted %lf to %f in relation to issue #5.
-rw-r--r-- | src/shared/mips_test_framework.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/mips_test_framework.cpp b/src/shared/mips_test_framework.cpp index d66169b..77de0ad 100644 --- a/src/shared/mips_test_framework.cpp +++ b/src/shared/mips_test_framework.cpp @@ -221,7 +221,7 @@ extern "C" void mips_test_end_suite() totalFullyWorking++; } - fprintf(stderr, "|%12s | %4u | %4u | %5.1lf%% |\n", name.c_str(), total, passed, 100.0*passed/(double)total); + fprintf(stderr, "|%12s | %4u | %4u | %5.1f%% |\n", name.c_str(), total, passed, 100.0*passed/(double)total); if(sg_knownInstructions.find(name)==sg_knownInstructions.end()){ fprintf(stderr, "+ Warning: previous instruction not known +\n"); @@ -233,7 +233,7 @@ extern "C" void mips_test_end_suite() fprintf(stderr, "+-------------+--------+--------+---------+\n"); fprintf(stderr, "\n"); fprintf(stderr, "Total instructions tested: %3u\n", totalTested); - fprintf(stderr, "Fully working : %3u (%5.1lf%%)\n", totalFullyWorking, 100.0*totalFullyWorking/(double)totalTested); - fprintf(stderr, "Partially working : %3u (%5.1lf%%)\n", totalPartiallyWorking, 100.0*totalPartiallyWorking/(double)totalTested); - fprintf(stderr, "Not working at all : %3u (%5.1lf%%)\n", totalNotWorking, 100.0*totalNotWorking/(double)totalTested); + fprintf(stderr, "Fully working : %3u (%5.1f%%)\n", totalFullyWorking, 100.0*totalFullyWorking/(double)totalTested); + fprintf(stderr, "Partially working : %3u (%5.1f%%)\n", totalPartiallyWorking, 100.0*totalPartiallyWorking/(double)totalTested); + fprintf(stderr, "Not working at all : %3u (%5.1f%%)\n", totalNotWorking, 100.0*totalNotWorking/(double)totalTested); } |