From cf6d843c18df0a8cff0f50585a114f2db5a92a93 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 4 Dec 2012 19:14:37 +0100 Subject: [PATCH] Fix pseudo-logging API when no logging is used --- libnfc/log.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libnfc/log.h b/libnfc/log.h index 34d0b85..eb46e6d 100644 --- a/libnfc/log.h +++ b/libnfc/log.h @@ -72,9 +72,9 @@ __attribute__((format(printf, 4, 5))) #else // No logging -#define log_init() ((void) 0) +#define log_init(nfc_context) ((void) 0) #define log_exit() ((void) 0) -#define log_put(category, priority, format, ...) do {} while (0) +#define log_put(group, category, priority, format, ...) do {} while (0) #endif // LOG @@ -102,7 +102,8 @@ __attribute__((format(printf, 4, 5))) log_put (group, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%s", __acBuf); \ } while (0); # else -# define LOG_HEX(pcTag, pbtData, szBytes) do { \ +# define LOG_HEX(group, pcTag, pbtData, szBytes) do { \ + (void) group; \ (void) pcTag; \ (void) pbtData; \ (void) szBytes; \