mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-28 06:39:49 +00:00
enable/disable log_debug, log_info, and log_error indivdually
This commit is contained in:
parent
112ed73c09
commit
fb0ca34a15
28
src/debug.h
28
src/debug.h
@ -37,18 +37,22 @@
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#ifdef EMBEDDED
|
||||
|
||||
#define log_info(...)
|
||||
#define log_error(...)
|
||||
#define log_info(...)
|
||||
|
||||
#else
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define log_info(format, ...) printf(format, ## __VA_ARGS__)
|
||||
#define log_info(format, ...) printf(format, ## __VA_ARGS__)
|
||||
#define log_error(format, ...) printf(format, ## __VA_ARGS__)
|
||||
|
||||
#ifdef ENABLE_LOG_DEBUG
|
||||
#define log_debug(format, ...) printf(format, ## __VA_ARGS__)
|
||||
#else
|
||||
#define log_debug(...)
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_LOG_INFO
|
||||
#define log_info(format, ...) printf(format, ## __VA_ARGS__)
|
||||
#else
|
||||
#define log_info(...)
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_LOG_ERROR
|
||||
#define log_error(format, ...) printf(format, ## __VA_ARGS__)
|
||||
#else
|
||||
#define log_error(...)
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user