mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 18:13:46 +00:00
Fix pseudo-logging API when no logging is used
This commit is contained in:
@@ -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; \
|
||||||
|
|||||||
Reference in New Issue
Block a user