From: kibak.yoon Date: Mon, 22 Apr 2019 03:35:17 +0000 (+0900) Subject: sensor: capi: change log macro to show logs efficiently X-Git-Tag: submit/tizen_4.0/20190423.044758^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d60ab51f50e1886af89e794bfffd3d7ab325202;p=platform%2Fcore%2Fapi%2Fsensor.git sensor: capi: change log macro to show logs efficiently Change-Id: Ie96faf6cc472bf2486f39ca0e14a84c13c1c334c Signed-off-by: kibak.yoon --- diff --git a/include/sensor_log.h b/include/sensor_log.h index 9c9e3ac..e70b435 100644 --- a/include/sensor_log.h +++ b/include/sensor_log.h @@ -24,8 +24,6 @@ extern "C" #include -#define _DEBUG 1 - #undef LOG_TAG #define LOG_TAG "TIZEN_SYSTEM_SENSOR" @@ -38,17 +36,10 @@ extern "C" #define _E_MSG(err) SLOGE(_MSG_##err "(0x%08x)", (err)) -#ifdef _DEBUG - #define _E(fmt, args...) dlog_print(DLOG_ERROR, LOG_TAG, fmt, ##args) - #define _W(fmt, args...) dlog_print(DLOG_WARN, LOG_TAG, fmt, ##args) - #define _I(fmt, args...) dlog_print(DLOG_INFO, LOG_TAG, fmt, ##args) - #define _D(fmt, args...) dlog_print(DLOG_DEBUG, LOG_TAG, fmt, ##args) -#else - #define _E(...) - #define _W(...) - #define _I(...) - #define _D(...) -#endif +#define _E(fmt, args...) LOGE(fmt, ##args) +#define _W(fmt, args...) LOGW(fmt, ##args) +#define _I(fmt, args...) LOGI(fmt, ##args) +#define _D(fmt, args...) LOGD(fmt, ##args) #ifdef __cplusplus }