summaryrefslogtreecommitdiffstats
path: root/service.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 /service.c
parentaf863b697eacbe29db1d448886bebb2609922a64 (diff)
downloadunitd-0f479be2068d7fe3bd5953e7454aaabb2be38d93.tar
unitd-0f479be2068d7fe3bd5953e7454aaabb2be38d93.zip
DPRINTF no longer exists
Diffstat (limited to 'service.c')
-rw-r--r--service.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/service.c b/service.c
index 44b10be..16593fc 100644
--- a/service.c
+++ b/service.c
@@ -35,15 +35,15 @@ service_instance_update(struct vlist_tree *tree, struct vlist_node *node_new,
in_n = container_of(node_new, struct service_instance, node);
if (in_o && in_n) {
- DPRINTF("Update instance %s::%s\n", in_o->srv->name, in_o->name);
+ LOG("Update instance %s::%s\n", in_o->srv->name, in_o->name);
instance_update(in_o, in_n);
instance_free(in_n);
} else if (in_o) {
- DPRINTF("Free instance %s::%s\n", in_o->srv->name, in_o->name);
+ LOG("Free instance %s::%s\n", in_o->srv->name, in_o->name);
instance_stop(in_o, false);
instance_free(in_o);
} else if (in_n) {
- DPRINTF("Create instance %s::%s\n", in_n->srv->name, in_n->name);
+ LOG("Create instance %s::%s\n", in_n->srv->name, in_n->name);
instance_start(in_n);
}
}
@@ -148,11 +148,11 @@ service_handle_set(struct ubus_context *ctx, struct ubus_object *obj,
s = avl_find_element(&services, name, s, avl);
if (s) {
- DPRINTF("Update service %s\n", name);
+ LOG("Update service %s\n", name);
return service_update(s, msg, tb, add);
}
- DPRINTF("Create service %s\n", name);
+ LOG("Create service %s\n", name);
s = service_alloc(name);
if (!s)
return UBUS_STATUS_UNKNOWN_ERROR;
@@ -230,7 +230,7 @@ service_handle_delete(struct ubus_context *ctx, struct ubus_object *obj,
in = vlist_find(&s->instances, blobmsg_data(cur), in, node);
if (!in) {
- fprintf(stderr, "instance %s not found\n", (char *) blobmsg_data(cur));
+ ERROR("instance %s not found\n", (char *) blobmsg_data(cur));
return UBUS_STATUS_NOT_FOUND;
}