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;
}
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
# 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}")
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)
#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;