print services with no instances when verbose is set
authorJohn Crispin <blogic@openwrt.org>
Wed, 10 Jul 2013 10:55:37 +0000 (12:55 +0200)
committerJohn Crispin <blogic@openwrt.org>
Wed, 10 Jul 2013 10:55:37 +0000 (12:55 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
service.c

index 4189e2d..561c76c 100644 (file)
--- a/service.c
+++ b/service.c
@@ -220,7 +220,7 @@ service_dump(struct service *s, int verbose)
        struct service_instance *in;
        void *c, *i;
 
-       if (avl_is_empty(&s->instances.avl))
+       if (avl_is_empty(&s->instances.avl) && !verbose)
                return;
 
        c = blobmsg_open_table(&b, s->name);