From: Chanwoo Choi Date: Tue, 17 Jul 2018 09:38:21 +0000 (+0900) Subject: hal: Move LOG_TAG definition to makefile to remove the duplicate X-Git-Tag: accepted/tizen/unified/20180724.073356~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c2962a001fa9084014d56b23becc91656e3fa06;p=platform%2Fcore%2Fsystem%2Fpass.git hal: Move LOG_TAG definition to makefile to remove the duplicate 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6fe5f97..a16e74c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,7 @@ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functi 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}\"") diff --git a/include/pass/log.h b/include/pass/log.h index d170161..1edba9f 100644 --- a/include/pass/log.h +++ b/include/pass/log.h @@ -20,10 +20,6 @@ #define __LOG_H__ #include -#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) diff --git a/src/hal/hal-log.h b/src/hal/hal-log.h index 69a86d5..4b43f61 100644 --- a/src/hal/hal-log.h +++ b/src/hal/hal-log.h @@ -20,10 +20,6 @@ #define __HAL_LOG_H__ #include -#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)