From: DRC Date: Wed, 25 Feb 2015 20:08:34 +0000 (-0600) Subject: encperf: change % to %% in printf format X-Git-Tag: v1.4.90~37^2~3^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e46dda69923af5818aca2587d6114b04d8414f84;p=tigervnc.git encperf: change % to %% in printf format GCC lets this slide, but other compilers (clang) complain about using % rather than %% to print a literal % character. --- 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);