Add FEATURE_DLOG and change LOG_TAG 82/251482/2
authorlokilee73 <changjoo.lee@samsung.com>
Thu, 14 Jan 2021 07:35:20 +0000 (16:35 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Thu, 14 Jan 2021 08:38:06 +0000 (17:38 +0900)
Change-Id: Ia9dbb0510d59d0c96bf66bbc9970d7a1040daa9e
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
CMakeLists.txt
hw/common/common.h
packaging/device-manager-plugin-artik.spec

index bc89dd0..3e85ff1 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/board)
 ADD_SUBDIRECTORY(hw/display)
 ADD_SUBDIRECTORY(hw/led)
index d286e0e..6f56601 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 5f3b510..0eb74d9 100644 (file)
@@ -28,7 +28,7 @@ Device manager plugin artik
 cp %{SOURCE1} .
 
 %build
-%cmake .
+%cmake . -DENABLE_DLOG=on \
 
 make %{?jobs:-j%jobs}