modify log level in buxton/vconf api 85/92685/1 accepted/tizen/3.0/ivi/20161028.133952 accepted/tizen/3.0/mobile/20161028.133106 accepted/tizen/3.0/tv/20161028.133412 accepted/tizen/3.0/wearable/20161028.133717 accepted/tizen/common/20161018.175258 accepted/tizen/ivi/20161018.235353 accepted/tizen/mobile/20161018.235331 accepted/tizen/tv/20161018.235343 accepted/tizen/wearable/20161018.235338 submit/tizen/20161018.072833 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082423 submit/tizen_3.0_common/20161104.104000
authorJiwoong Im <jiwoong.im@samsung.com>
Tue, 18 Oct 2016 06:40:18 +0000 (15:40 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Tue, 18 Oct 2016 06:40:18 +0000 (15:40 +0900)
Change-Id: I53297c268240a0ff5731e832256843260521c6e8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
lib/buxton2.c
packaging/buxton2.spec
vconf-compat/CMakeLists.txt
vconf-compat/vconf.c

index 84d0db1..1638018 100644 (file)
@@ -2294,7 +2294,7 @@ int connect_server(const char *addr)
                if (errno == ENOENT)
                        bxt_dbg("connect: '%s' not exist", addr);
                else
-                       bxt_err("connect: connect errno %d", errno);
+                       bxt_dbg("connect: connect errno %d", errno);
                close(fd);
                return -1;
        }
index d22e74f..39c6a94 100644 (file)
@@ -20,6 +20,7 @@ BuildRequires:  pkgconfig(gio-2.0)
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(libsystemd)
 BuildRequires:  pkgconfig(cynara-client-async)
+BuildRequires:  pkgconfig(dlog)
 Requires(post): /usr/bin/getent
 Requires(post): /usr/bin/chown
 Requires(post): /usr/sbin/useradd
index 06ca125..70288c5 100644 (file)
@@ -1,6 +1,6 @@
 # libvconf build
 
-PKG_CHECK_MODULES(V_PKGS REQUIRED vconf-internal-keys)
+PKG_CHECK_MODULES(V_PKGS REQUIRED vconf-internal-keys dlog)
 
 FOREACH(flag ${V_PKGS_CFLAGS})
        SET(VCONF_CFLAGS "${VCONF_CFLAGS} ${flag}")
@@ -17,7 +17,7 @@ SET_TARGET_PROPERTIES(vconf PROPERTIES
                VERSION 0.3.1
                SOVERSION 0
 )
-TARGET_LINK_LIBRARIES(vconf buxton2)
+TARGET_LINK_LIBRARIES(vconf buxton2 dlog)
 INSTALL(TARGETS vconf DESTINATION ${LIB_INSTALL_DIR})
 
 CONFIGURE_FILE(vconf.pc.in vconf.pc @ONLY)
index 26592a2..27ce2c2 100644 (file)
@@ -27,6 +27,7 @@
 #include <glib.h>
 
 #include <buxton2.h>
+#include <dlog.h>
 
 #include "vconf.h"
 
 #  define EXPORT __attribute__((visibility("default")))
 #endif
 
-#define LOGE(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+
+#define LOG_TAG "VCONF"
 
 static pthread_mutex_t vconf_lock = PTHREAD_MUTEX_INITIALIZER;
 static int _refcnt;