Fix : log twisted regardless time sequence 09/231509/1
authorinjun.yang <injun.yang@samsung.com>
Mon, 2 Mar 2020 02:01:58 +0000 (11:01 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 22 Apr 2020 07:21:29 +0000 (16:21 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] log sequence wrong
[Cause & Measure] Modify logging method
[Checking Method] n/a

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I76876630d4b61fa28a6c69a7afc1fadfe180429b
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-oal/oal-internal.h

index e675096..35117d1 100755 (executable)
@@ -42,16 +42,17 @@ extern "C" {
 #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);                   \
@@ -60,14 +61,12 @@ extern "C" {
                        } 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)