From e46dda69923af5818aca2587d6114b04d8414f84 Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 25 Feb 2015 14:08:34 -0600 Subject: [PATCH] encperf: change % to %% in printf format GCC lets this slide, but other compilers (clang) complain about using % rather than %% to print a literal % character. --- tests/encperf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/encperf.cxx b/tests/encperf.cxx index 20644960..31d7c736 100644 --- a/tests/encperf.cxx +++ b/tests/encperf.cxx @@ -442,7 +442,7 @@ int main(int argc, char **argv) sort(dev, runCount); meddev = dev[runCount / 2]; - printf("CPU time: %g s (+/- %g %)\n", median, meddev); + printf("CPU time: %g s (+/- %g %%)\n", median, meddev); printf("Encoded bytes: %lld\n", bytes); printf("Raw equivalent bytes: %lld\n", equivalent); printf("Ratio: %g\n", ratio); -- 2.39.5