From: John Crispin Date: Wed, 27 Aug 2014 11:50:24 +0000 (+0200) Subject: add .data to instance_dump() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a6fa0a6067cb3c522f5dc735e808a68f62b30b2;p=project%2Fprocd.git add .data to instance_dump() Signed-off-by: John Crispin --- diff --git a/service/instance.c b/service/instance.c index 2e2f413..c22e546 100644 --- a/service/instance.c +++ b/service/instance.c @@ -579,6 +579,14 @@ void instance_dump(struct blob_buf *b, struct service_instance *in, int verbose) blobmsg_close_table(b, e); } + if (!avl_is_empty(&in->data.avl)) { + struct blobmsg_list_node *var; + void *e = blobmsg_open_table(b, "data"); + blobmsg_list_for_each(&in->data, var) + blobmsg_add_blob(b, var->data); + blobmsg_close_table(b, e); + } + if (!avl_is_empty(&in->limits.avl)) { struct blobmsg_list_node *var; void *e = blobmsg_open_table(b, "limits");