From: Avichal Date: Thu, 25 Apr 2019 11:22:04 +0000 (+0530) Subject: sensor: capi: change log macro to show logs efficiently X-Git-Tag: submit/tizen_5.0/20190429.051715^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F82%2F204682%2F1;p=platform%2Fcore%2Fapi%2Fsensor.git sensor: capi: change log macro to show logs efficiently Change-Id: Ie04d4e4ea5109734bc6efa7977f8a9d820c12311 Signed-off-by: Avichal --- 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 }