From 3737481262e0ba744d934e4c39875bee428d4977 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Wed, 16 May 2012 13:17:52 +0000 Subject: [PATCH] Correctly use the log_put() format Fix compiler warning: warning: format not a string literal and no format arguments --- libnfc/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/log.h b/libnfc/log.h index 264a00b..1f174d4 100644 --- a/libnfc/log.h +++ b/libnfc/log.h @@ -92,7 +92,7 @@ snprintf (__acBuf + __szBuf, sizeof(__acBuf) - __szBuf, "%02x ",((uint8_t *)(pbtData))[__szPos]); \ __szBuf += 4; \ } \ - log_put (LOG_CATEGORY, NFC_PRIORITY_TRACE, __acBuf); \ + log_put (LOG_CATEGORY, NFC_PRIORITY_TRACE, "%s", __acBuf); \ } while (0); # else # define LOG_HEX(pcTag, pbtData, szBytes) do { \