From aada3eda9ab02ac6e2d9d09ed8de6f26aef132dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Wed, 10 Jun 2015 15:43:52 +0200 Subject: [PATCH] remove dlog redundancy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I5103a960c3bdb6a1904b814d5526d897643a4ad5 Signed-off-by: José Bollo --- include/common.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/include/common.h b/include/common.h index a0bc6ef..12120e1 100644 --- a/include/common.h +++ b/include/common.h @@ -63,24 +63,6 @@ #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); -- 2.7.4