summaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-08-27 13:50:24 +0200
committerJohn Crispin <blogic@openwrt.org>2014-08-29 16:14:57 +0200
commit6a6fa0a6067cb3c522f5dc735e808a68f62b30b2 (patch)
tree27dc6b047461f5835b386d95316dde56329a0754 /service
parenta396e6d88946a7009d41315bdeea54da42b27d39 (diff)
downloadunitd-6a6fa0a6067cb3c522f5dc735e808a68f62b30b2.tar
unitd-6a6fa0a6067cb3c522f5dc735e808a68f62b30b2.zip
add .data to instance_dump()
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'service')
-rw-r--r--service/instance.c8
1 files changed, 8 insertions, 0 deletions
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");