plugin-api: common: Remove log macro from common.h to use libsyscommon/log.h 70/297670/1
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 22 Aug 2023 10:55:51 +0000 (19:55 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 22 Aug 2023 10:55:51 +0000 (19:55 +0900)
Change-Id: I4de1c0b035397d4c58a702665696bd64233d4885
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/plugin-api/common/src/common.h
src/plugin-api/common/src/syscommon-plugin-api-common.c
src/plugin-api/common/src/syscommon-plugin-api-conf.c

index 44e99fd..d33b4ae 100644 (file)
 extern "C" {
 #endif
 
-#ifdef ENABLE_DLOG
-#include <dlog.h>
-
-#define _D(fmt, args...) SLOGD(fmt, ##args)
-#define _I(fmt, args...) SLOGI(fmt, ##args)
-#define _W(fmt, args...) SLOGW(fmt, ##args)
-#define _E(fmt, args...) SLOGE(fmt, ##args)
-#else
-#define _D(fmt, args...) do { } while(0)
-#define _I(fmt, args...) do { } while(0)
-#define _W(fmt, args...) do { } while(0)
-#define _E(fmt, args...) do { } while(0)
-#endif
-
 #define ARRAY_SIZE(name) (sizeof(name)/sizeof(name[0]))
 
 enum plugin_license {
index b6fb3db..7ff51d3 100644 (file)
@@ -35,6 +35,8 @@
 
 #include <glib-object.h>
 
+#include <libsyscommon/log.h>
+
 #include "common.h"
 #include "syscommon-plugin-api-conf.h"
 
index 0525b0a..1e25c4a 100644 (file)
@@ -27,6 +27,8 @@
 #include <gio/gio.h>
 #include <glib-object.h>
 
+#include <libsyscommon/log.h>
+
 #include <system/syscommon-plugin-common.h>
 #include <system/syscommon-plugin-common-interface.h>