Each log header file defines LOG_TAG. It defines LOG_TAG on Makefile
in order to remove the duplicate definitions.
Change-Id: I3b4b08008e259fe3a0c8257ffaad0f291666a0c4
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -lrt")
SET(CMAKE_EXE_LINKER_FLAGS "-pie")
+ADD_DEFINITIONS("-DLOG_TAG=\"PASS\"")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{FACTORYFS}\"")
ADD_DEFINITIONS("-DLIBPATH=\"${LIB_INSTALL_DIR}\"")
#define __LOG_H__
#include <dlog.h>
-#ifdef LOG_TAG
-#undef LOG_TAG
-#define LOG_TAG "PASS"
-#endif /* LOG_TAG */
#define _D(fmt, arg...) do { SLOGD(fmt, ##arg); } while (0)
#define _I(fmt, arg...) do { SLOGI(fmt, ##arg); } while (0)
#define __HAL_LOG_H__
#include <dlog.h>
-#ifdef LOG_TAG
-#undef LOG_TAG
-#define LOG_TAG "PASS"
-#endif /* LOG_TAG */
#define _D(fmt, arg...) do { SLOGD(fmt, ##arg); } while (0)
#define _I(fmt, arg...) do { SLOGI(fmt, ##arg); } while (0)