xref: /OK3568_Linux_fs/external/rkwifibt-app/include/slog.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 #ifndef __BT_LOG__
2 #define __BT_LOG__
3 #include <syslog.h>
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 #define LOG_TAG "BLUEZ_LOG"
10 #define SYSLOG_DEBUG
11 
12 #ifdef SYSLOG_DEBUG
13 #define pr_debug(fmt, ...)		syslog(LOG_DEBUG, fmt, ##__VA_ARGS__)
14 #define pr_info(fmt, ...)		syslog(LOG_INFO, fmt, ##__VA_ARGS__)
15 #define pr_warning(fmt, ...)	syslog(LOG_WARNING, fmt, ##__VA_ARGS__)
16 #define pr_err(fmt, ...)		syslog(LOG_ERR, fmt, ##__VA_ARGS__)
17 #else
18 #define pr_debug	printf
19 #define pr_info printf
20 #define pr_warning printf
21 #define pr_err printf
22 #endif
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 
28 #endif
29