Include callmgr log in main log 04/92704/1 accepted/tizen/3.0/ivi/20161028.134033 accepted/tizen/3.0/mobile/20161028.133142 accepted/tizen/common/20161019.145540 accepted/tizen/ivi/20161019.044521 accepted/tizen/mobile/20161019.044511 submit/tizen/20161019.002504 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082423 submit/tizen_3.0_common/20161104.104000
authorWootak Jung <wootak.jung@samsung.com>
Tue, 18 Oct 2016 08:00:53 +0000 (17:00 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Tue, 18 Oct 2016 08:03:13 +0000 (17:03 +0900)
Change-Id: I429fcc013217fffb38efc962d36bc0f3dbe3dddc

common/include/callmgr-log.h
packaging/call-manager.spec

index a54db0e..8f92f8f 100644 (file)
@@ -24,33 +24,36 @@ __BEGIN_DECLS
 
 #include <dlog.h>
 
-#ifndef CALLMGR_LOG_TAG
-#define CALLMGR_LOG_TAG "CALL_MGR"
+#ifdef LOG_TAG
+#undef LOG_TAG
 #endif
+#define LOG_TAG "CALL_MGR"
 
-#define CALLMGR_RLOG_ENABLED 1
-
+//#define CALLMGR_RLOG_ENABLED 1
 #ifdef CALLMGR_RLOG_ENABLED
-#define dbg(fmt,args...)   { RLOG(LOG_DEBUG, CALLMGR_LOG_TAG, fmt "\n", ##args); }
-#define info(fmt,args...)   { RLOG(LOG_INFO, CALLMGR_LOG_TAG, fmt "\n", ##args); }
-#define warn(fmt,args...)   { RLOG(LOG_WARN, CALLMGR_LOG_TAG, fmt "\n", ##args); }
-#define err(fmt,args...)   { RLOG(LOG_ERROR, CALLMGR_LOG_TAG, fmt "\n", ##args); }
-#define fatal(fmt,args...)   { RLOG(LOG_FATAL, CALLMGR_LOG_TAG, fmt "\n", ##args); }
-
-#define sec_err(fmt, arg...) {SECURE_RLOG(LOG_ERROR, CALLMGR_LOG_TAG, fmt"\n", ##arg); }
-#define sec_warn(fmt, arg...) {SECURE_RLOG(LOG_WARN, CALLMGR_LOG_TAG, fmt"\n", ##arg); }
-#define sec_dbg(fmt, arg...) {SECURE_RLOG(LOG_DEBUG, CALLMGR_LOG_TAG, fmt"\n", ##arg); }
-#else
-#define dbg(fmt,args...)   { __dlog_print(LOG_ID_MAIN, DLOG_DEBUG, CALLMGR_LOG_TAG, "<%s:%d> " fmt "\n", __func__, __LINE__, ##args); }
-#define info(fmt,args...)   { __dlog_print(LOG_ID_MAIN, DLOG_WARN, CALLMGR_LOG_TAG, "<%s:%d> " fmt "\n", __func__, __LINE__, ##args); }
-#define warn(fmt,args...)   { __dlog_print(LOG_ID_MAIN, DLOG_WARN, CALLMGR_LOG_TAG, "<%s:%d> " fmt "\n", __func__, __LINE__, ##args); }
-#define err(fmt,args...)   { __dlog_print(LOG_ID_MAIN, DLOG_ERROR, CALLMGR_LOG_TAG, "<%s:%d> " fmt "\n", __func__, __LINE__, ##args); }
-#define fatal(fmt,args...)   { __dlog_print(LOG_ID_MAIN, DLOG_FATAL, CALLMGR_LOG_TAG, "<%s:%d> " fmt "\n", __func__, __LINE__, ##args); }
-
-#define sec_err(fmt, arg...) {SECURE_LOGE(CALLMGR_LOG_TAG, fmt"\n", ##arg); }
-#define sec_warn(fmt, arg...) {SECURE_LOGW(CALLMGR_LOG_TAG, fmt"\n", ##arg); }
-#define sec_dbg(fmt, arg...) {SECURE_LOGD(CALLMGR_LOG_TAG, fmt"\n", ##arg); }
-#endif
+
+#define dbg(fmt,args...)   { RLOG(LOG_DEBUG, LOG_TAG, fmt, ##args); }
+#define info(fmt,args...)   { RLOG(LOG_INFO, LOG_TAG, fmt, ##args); }
+#define warn(fmt,args...)   { RLOG(LOG_WARN, LOG_TAG, fmt, ##args); }
+#define err(fmt,args...)   { RLOG(LOG_ERROR, LOG_TAG, fmt, ##args); }
+#define fatal(fmt,args...)   { RLOG(LOG_FATAL, LOG_TAG, fmt, ##args); }
+
+#define sec_err(fmt, arg...) { SECURE_RLOG(LOG_ERROR, LOG_TAG, fmt, ##arg); }
+#define sec_warn(fmt, arg...) { SECURE_RLOG(LOG_WARN, LOG_TAG, fmt, ##arg); }
+#define sec_dbg(fmt, arg...) { SECURE_RLOG(LOG_DEBUG, LOG_TAG, fmt, ##arg); }
+
+#else /* CALLMGR_RLOG_ENABLED */
+
+#define dbg(fmt,args...)   { LOGD(fmt, ##args); }
+#define info(fmt,args...)   { LOGI(fmt, ##args); }
+#define warn(fmt,args...)   { LOGW(fmt, ##args); }
+#define err(fmt,args...)   { LOGE(fmt, ##args); }
+#define fatal(fmt,args...)   { LOGF(fmt, ##args); }
+
+#define sec_err(fmt, arg...) { SECURE_LOGE(fmt, ##arg); }
+#define sec_warn(fmt, arg...) { SECURE_LOGW(fmt, ##arg); }
+#define sec_dbg(fmt, arg...) { SECURE_LOGD(fmt, ##arg); }
+#endif /* CALLMGR_RLOG_ENABLED */
 
 #define CM_RETURN_IF_FAIL(scalar_exp) {\
        if (!(scalar_exp)) \
index 93b6b08..85c8cca 100755 (executable)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 1
-%define patchlevel 76
+%define patchlevel 77
 %define ext_feature 0
 
 Name:           call-manager