shared: Fix warning messages due to LOG_TAG define 85/113285/1
authorWook Song <wook16.song@samsung.com>
Mon, 6 Feb 2017 03:57:40 +0000 (12:57 +0900)
committerWook Song <wook16.song@samsung.com>
Tue, 7 Feb 2017 05:44:19 +0000 (14:44 +0900)
This patch eliminates the following warning messages:
In file included from pass-0.0.1/src/shared/dbus.c:27:0:
pass-0.0.1/src/shared/log.h:23:0: warning: "LOG_TAG" redefined
  #define LOG_TAG "PASS"
  ^
In file included from /usr/include/dlog/dlog.h:34:0,
                 from pass-0.0.1/src/shared/log.h:22,
 from pass-0.0.1/src/shared/dbus.c:27:
/usr/include/dlog/dlog-internal.h:41:0: note: this is the
location of the previous definition
 #define LOG_TAG NULL

Change-Id: I072216c79a5daa883097601876cfff1f731ceaef
Signed-off-by: Wook Song <wook16.song@samsung.com>
src/shared/log.h

index 636be78..0359108 100644 (file)
 #define __LOG_H__
 
 #include <dlog.h>
+#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)