Fix pseudo-logging API when no logging is used

This commit is contained in:
Philippe Teuwen 2012-12-04 19:14:37 +01:00
parent 2651cdce2e
commit cf6d843c18

View file

@ -72,9 +72,9 @@ __attribute__((format(printf, 4, 5)))
#else #else
// No logging // No logging
#define log_init() ((void) 0) #define log_init(nfc_context) ((void) 0)
#define log_exit() ((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 #endif // LOG
@ -102,7 +102,8 @@ __attribute__((format(printf, 4, 5)))
log_put (group, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%s", __acBuf); \ log_put (group, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "%s", __acBuf); \
} while (0); } while (0);
# else # else
# define LOG_HEX(pcTag, pbtData, szBytes) do { \ # define LOG_HEX(group, pcTag, pbtData, szBytes) do { \
(void) group; \
(void) pcTag; \ (void) pcTag; \
(void) pbtData; \ (void) pbtData; \
(void) szBytes; \ (void) szBytes; \