mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-28 16:11:24 +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"
|
#include "../config.h"
|
||||||
|
|
||||||
#ifdef EMBEDDED
|
|
||||||
|
|
||||||
#define log_info(...)
|
|
||||||
#define log_error(...)
|
|
||||||
#define log_info(...)
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#define log_info(format, ...) printf(format, ## __VA_ARGS__)
|
#ifdef ENABLE_LOG_DEBUG
|
||||||
#define log_info(format, ...) printf(format, ## __VA_ARGS__)
|
#define log_debug(format, ...) printf(format, ## __VA_ARGS__)
|
||||||
#define log_error(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
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user