From ff25100560166576abdcc738583f89e279674866 Mon Sep 17 00:00:00 2001 From: m8pple Date: Mon, 19 Oct 2015 16:26:25 +0100 Subject: Converted %lf to %f in relation to issue #5. --- src/shared/mips_test_framework.cpp | 8 ++++---- 1 file 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); } -- cgit