mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 04:06:38 +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
|
||||
// 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; \
|
||||
|
||||
Reference in New Issue
Block a user