Fix 'ISO C90 does not support %lf, %lg gnu_printf formats' GCC warnings
authorIvan Maidanski <ivmai@mail.ru>
Fri, 21 Oct 2016 19:11:09 +0000 (22:11 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 21 Oct 2016 19:11:09 +0000 (22:11 +0300)
* tests/disclaim_bench.c (main): Replace "%lf" printf format specifier
to "%f" one, and "%lg" one to "%g" one.

tests/disclaim_bench.c

index 18c6e60..c2a09aa 100644 (file)
@@ -136,10 +136,10 @@ int main(int argc, char **argv)
 #       endif
 
         if (model < 2 && free_count > 0)
-            printf("%20s: %12.4lf %12lg %12lg\n", model_str[model],
+            printf("%20s: %12.4f %12g %12g\n", model_str[model],
                    free_count/(double)ALLOC_CNT, t, t/free_count);
         else
-            printf("%20s: %12.4lf %12lg %12s\n",
+            printf("%20s: %12.4f %12g %12s\n",
                    model_str[model], 0.0, t, "N/A");
     }
     return 0;