From fd984d7ca8963e4658272c4771ddd1ffb1e02f46 Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Fri, 2 Jun 2023 11:38:14 +0900 Subject: [PATCH] shared: Add handling LOG_TAG 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 --- src/shared/log.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/log.h b/src/shared/log.h index 27681f2..5a16f28 100644 --- a/src/shared/log.h +++ b/src/shared/log.h @@ -28,7 +28,9 @@ #undef ENABLE_DLOG #endif +#ifndef LOG_TAG #define LOG_TAG "DEVICED" +#endif #include "shared/log-macro.h" #endif -- 2.7.4