#undef LOG_TAG
#define LOG_TAG "BLUETOOTH_OAL"
+
#define BT_DBG(fmt, args...) \
- LOGD(fmt, ##args)
+ SLOGD(fmt, ##args)
#define BT_ERR(fmt, args...) \
- LOGE(RED(fmt), ##args)
+ SLOGE(RED(fmt), ##args)
#define BT_INFO(fmt, args...) \
- LOGI(fmt, ##args)
+ SLOGI(fmt, ##args)
#define BT_VBS(fmt, args...) \
{SLOGI(fmt, ##args); LOGI(fmt, ##args); }
#define BT_WARN(fmt, args...) \
- LOGW(YELLOW(fmt), ##args)
+ SLOGW(YELLOW(fmt), ##args)
#define NO_SUPP_CHK(status, fmt, args...) do {\
if (status == BT_STATUS_UNSUPPORTED) \
BT_WARN(fmt, ##args); \
} while (0)
-#define API_TRACE(fmt, args...) {LOG_(LOG_ID_SYSTEM, DLOG_INFO, "OAL_API", GREEN(fmt), ##args); \
- LOG_(LOG_ID_MAIN, DLOG_INFO, LOG_TAG, GREEN("[OAL_API]"fmt), ##args); }
+#define API_TRACE(fmt, args...) SLOGI(GREEN("[OAL_API]"fmt), ##args)
#define send_event_trace(e, d, l, a, fmt, args...) do {\
bdstr_t bdstr;\
send_event_no_trace(e, d, l); \
- LOG_(LOG_ID_SYSTEM, DLOG_INFO, "OAL_EVENT", GREEN(fmt" [%s] %s"), ##args, bdt_bd2str(a, &bdstr), str_event[event]); \
- LOG_(LOG_ID_MAIN, DLOG_INFO, LOG_TAG, GREEN("[OAL_EVENT]"fmt" [%s] %s"), ##args, bdt_bd2str(a, &bdstr), str_event[event]);\
+ SLOGI(GREEN("[OAL_EVENT]"fmt" [%s] %s"), ##args, bdt_bd2str(a, &bdstr), str_event[event]);\
} while (0)