diff mbox

[PATCHv2,3/3] validation: odp_init_log: fix clang format string error

Message ID 1424773673-10840-4-git-send-email-taras.kondratiuk@linaro.org
State Accepted
Commit 8755de0b4de99d253b38fc1769ce42e45de34886
Headers show

Commit Message

Taras Kondratiuk Feb. 24, 2015, 10:27 a.m. UTC
From: Mike Holmes <mike.holmes@linaro.org>

odp_init_log.c:75:23: error: format string is not a string literal
      [-Werror,-Wformat-nonliteral]
        r = vfprintf(stderr, fmt, args);

Fixes https://bugs.linaro.org/show_bug.cgi?id=1248

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
---
 test/validation/odp_init_log.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/test/validation/odp_init_log.c b/test/validation/odp_init_log.c
index c072147..275d343 100644
--- a/test/validation/odp_init_log.c
+++ b/test/validation/odp_init_log.c
@@ -10,6 +10,7 @@ 
 
 int replacement_logging_used;
 
+ODP_PRINTF_FORMAT(2, 3)
 static int odp_init_log(odp_log_level_e level , const char *fmt, ...);
 
 static void test_odp_init_global_replace_log(void)