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>
#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)