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 4189e2d4b8e79fc3bce29bc1db5396a2065bf906..561c76c5de8e8a86b8bf8a2fa32e407b6e4f371c 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);