diff mbox

[PATCHv2,2/3] linux-generic: weak: fix -Wformat-nonliteral warning

Message ID 1424773673-10840-3-git-send-email-taras.kondratiuk@linaro.org
State Accepted
Commit 1505d9e5522b592e04b40e61b9d5d629ce1408b2
Headers show

Commit Message

Taras Kondratiuk Feb. 24, 2015, 10:27 a.m. 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;