summaryrefslogtreecommitdiffstats
path: root/ubus.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-03-09 20:19:18 +0100
committerJohn Crispin <blogic@openwrt.org>2013-03-13 18:58:14 +0100
commit0f479be2068d7fe3bd5953e7454aaabb2be38d93 (patch)
tree71a4d80e81a78c46452e3f34ae20a8ac88418379 /ubus.c
parentaf863b697eacbe29db1d448886bebb2609922a64 (diff)
downloadunitd-0f479be2068d7fe3bd5953e7454aaabb2be38d93.tar
unitd-0f479be2068d7fe3bd5953e7454aaabb2be38d93.zip
DPRINTF no longer exists
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ubus.c b/ubus.c
index 8c51b53..7b96fd6 100644
--- a/ubus.c
+++ b/ubus.c
@@ -22,7 +22,7 @@ static void procd_restart_ubus(void)
char *argv[] = { "ubusd", NULL, ubus_socket, NULL };
if (ubus_proc.pending) {
- DPRINTF("Killing existing ubus instance, pid=%d\n", (int) ubus_proc.pid);
+ ERROR("Killing existing ubus instance, pid=%d\n", (int) ubus_proc.pid);
kill(ubus_proc.pid, SIGKILL);
uloop_process_delete(&ubus_proc);
}
@@ -38,11 +38,11 @@ static void procd_restart_ubus(void)
}
if (ubus_proc.pid <= 0) {
- DPRINTF("Failed to start new ubus instance\n");
+ ERROR("Failed to start new ubus instance\n");
return;
}
- DPRINTF("Launched new ubus instance, pid=%d\n", (int) ubus_proc.pid);
+ LOG("Launched new ubus instance, pid=%d\n", (int) ubus_proc.pid);
uloop_process_add(&ubus_proc);
}
@@ -55,7 +55,7 @@ static void procd_ubus_try_connect(void)
ctx = ubus_connect(ubus_socket);
if (!ctx) {
- DPRINTF("Connection to ubus failed\n");
+ DEBUG(2, "Connection to ubus failed\n");
return;
}
@@ -73,7 +73,7 @@ static void procd_ubus_connection_lost(struct ubus_context *old_ctx)
procd_ubus_try_connect();
}
- DPRINTF("Connected to ubus, id=%08x\n", ctx->local_id);
+ LOG("Connected to ubus, id=%08x\n", ctx->local_id);
ubus_add_uloop(ctx);
}