remove dlog redundancy 86/40986/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/3.0.2015.q2/common/20150615.160012 accepted/tizen/common/20150615.075600 accepted/tizen/ivi/20160218.023746 accepted/tizen/mobile/20150616.010256 accepted/tizen/tv/20150616.010317 accepted/tizen/wearable/20150616.010349 submit/tizen/20150611.121111 submit/tizen_3.0.2015.q2_common/20150615.075539 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000003 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Wed, 10 Jun 2015 13:43:52 +0000 (15:43 +0200)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Wed, 10 Jun 2015 13:43:52 +0000 (15:43 +0200)
Change-Id: I5103a960c3bdb6a1904b814d5526d897643a4ad5
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
include/common.h

index a0bc6ef..12120e1 100644 (file)
 #define SECURE_C_LOGE(...) do { } while(0)
 #endif //DLOG_ERROR_ENABLED
 
-/* for SECURE_LOG* purpose */
-#undef _SECURE_
-#ifndef _SECURE_LOG
-#define _SECURE_ (0)
-#else
-#define _SECURE_ (1)
-#endif
-#undef LOG_
-#define LOG_(id, prio, tag, fmt, arg...) \
-    ( __dlog_print(id, prio, tag, "%s: %s(%d) > " fmt, __MODULE__, __func__, __LINE__, ##arg))
-#undef SECURE_LOG_
-#define SECURE_LOG_(id, prio, tag, fmt, arg...) \
-    (_SECURE_ ? ( __dlog_print(id, prio, tag, "%s: %s(%d) > [SECURE_LOG] " fmt, __MODULE__, __func__, __LINE__, ##arg)) : (0))
-
-#define SECURE_LOGD(format, arg...) SECURE_LOG_(LOG_ID_MAIN, DLOG_DEBUG, LOG_TAG, format, ##arg)
-#define SECURE_LOGI(format, arg...) SECURE_LOG_(LOG_ID_MAIN, DLOG_INFO, LOG_TAG, format, ##arg)
-#define SECURE_LOGW(format, arg...) SECURE_LOG_(LOG_ID_MAIN, DLOG_WARN, LOG_TAG, format, ##arg)
-#define SECURE_LOGE(format, arg...) SECURE_LOG_(LOG_ID_MAIN, DLOG_ERROR, LOG_TAG, format, ##arg)
 /****************************/
 
 void freep(void *p);