From 6a6fa0a6067cb3c522f5dc735e808a68f62b30b2 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 27 Aug 2014 13:50:24 +0200 Subject: add .data to instance_dump() Signed-off-by: John Crispin --- service/instance.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'service') 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"); -- cgit v1.2.3