diff mbox

[5/5] linux-generic: weak: fix -Wformat-nonliteral warning

Message ID 1423051213-20795-6-git-send-email-taras.kondratiuk@linaro.org
State Superseded
Headers show

Commit Message

Taras Kondratiuk Feb. 4, 2015, noon UTC
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
---
 platform/linux-generic/odp_weak.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/odp_weak.c b/platform/linux-generic/odp_weak.c
index 9dc3a4a..7fa5955 100644
--- a/platform/linux-generic/odp_weak.c
+++ b/platform/linux-generic/odp_weak.c
@@ -9,8 +9,8 @@ 
 #include <odp_debug_internal.h>
 #include <odp/hints.h>
 
-ODP_WEAK_SYMBOL int odp_override_log(odp_log_level_e level ODP_UNUSED,
-				     const char *fmt, ...)
+ODP_WEAK_SYMBOL ODP_PRINTF_FORMAT(2, 3)
+int odp_override_log(odp_log_level_e level ODP_UNUSED, const char *fmt, ...)
 {
 	va_list args;
 	int r;