shared: Add handling LOG_TAG 74/293674/1
authorYunhee Seo <yuni.seo@samsung.com>
Fri, 2 Jun 2023 02:38:14 +0000 (11:38 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Fri, 2 Jun 2023 02:43:57 +0000 (11:43 +0900)
In the shared/log.h, LOG_TAG can cause warning when the header files are
included with util.h.

Thus, LOG_TAG should be defined only when it is not defined.

Change-Id: If60ffd179aa393cfed67897366f08a9a77317e29
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/shared/log.h

index 27681f2..5a16f28 100644 (file)
@@ -28,7 +28,9 @@
 #undef ENABLE_DLOG
 #endif
 
+#ifndef LOG_TAG
 #define LOG_TAG "DEVICED"
+#endif
 #include "shared/log-macro.h"
 
 #endif