Add FEATURE_DLOG and change LOG_TAG
authorlokilee73 <changjoo.lee@samsung.com>
Thu, 14 Jan 2021 07:28:07 +0000 (16:28 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Thu, 14 Jan 2021 09:05:30 +0000 (18:05 +0900)
Change-Id: I50304e5eeafbc70a4b62836dd251392f19683c0c
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
CMakeLists.txt
hw/common/common.h
packaging/device-manager-plugin-tw3.spec

index 06d9e1e..c55d957 100644 (file)
@@ -5,6 +5,10 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror")
 
+IF(ENABLE_DLOG STREQUAL on)
+       ADD_DEFINITIONS("-DFEATURE_DLOG")
+ENDIF()
+
 ADD_SUBDIRECTORY(hw/battery)
 ADD_SUBDIRECTORY(hw/display)
 ADD_SUBDIRECTORY(hw/external_connection)
index 3c506ff..ae965d6 100644 (file)
@@ -25,7 +25,7 @@
 #include <unistd.h>
 
 #ifdef FEATURE_DLOG
-    #define LOG_TAG "HALBACKEND_DEVICE"
+    #define LOG_TAG "HAL_BACKEND_DEVICE"
     #include <dlog.h>
     #define _D(fmt, args...)    SLOGD(fmt, ##args)
     #define _I(fmt, args...)    SLOGI(fmt, ##args)
index 9c1096a..5849b0d 100644 (file)
@@ -27,7 +27,7 @@ Device manager plugin for TW3
 cp %{SOURCE1} .
 
 %build
-%cmake .
+%cmake . -DENABLE_DLOG=on \
 
 make %{?jobs:-j%jobs}