From 2a6a2f3a8e164b5520964f91dafec63ee9a17f79 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Wed, 13 Jan 2016 14:57:58 +0100 Subject: [PATCH] benchmarks: fix warning about insane use of printf() --- benchmarks/commons/benchmark_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/commons/benchmark_tools.c b/benchmarks/commons/benchmark_tools.c index 140df68..fd7ab2a 100644 --- a/benchmarks/commons/benchmark_tools.c +++ b/benchmarks/commons/benchmark_tools.c @@ -108,7 +108,7 @@ static void print_string_n(const char* str, size_t n) { size_t i; /* for-loop index*/ for (i = 0; i < n; ++i) - printf(str); + fputs(str, stdout); } /*! Safe wrapper around strlen() for NULL strings */