diff options
author | John Crispin <blogic@openwrt.org> | 2013-03-09 20:19:18 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-03-13 18:58:14 +0100 |
commit | 0f479be2068d7fe3bd5953e7454aaabb2be38d93 (patch) | |
tree | 71a4d80e81a78c46452e3f34ae20a8ac88418379 /service.c | |
parent | af863b697eacbe29db1d448886bebb2609922a64 (diff) | |
download | unitd-0f479be2068d7fe3bd5953e7454aaabb2be38d93.tar unitd-0f479be2068d7fe3bd5953e7454aaabb2be38d93.zip |
DPRINTF no longer exists
Diffstat (limited to 'service.c')
-rw-r--r-- | service.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; } |