From a5eebda391e00b3b2f9db080aade68dadd0e96a4 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 9 Sep 2020 17:14:58 -0600 Subject: [PATCH] ifquery: include reverse dependency count in dot output --- cmd/ifquery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ifquery.c b/cmd/ifquery.c index 25a09d3..8968d86 100644 --- a/cmd/ifquery.c +++ b/cmd/ifquery.c @@ -67,9 +67,9 @@ print_interface_dot(struct lif_dict *collection, struct lif_interface *iface, st return; if (parent != NULL) - printf("\"%s\" -> ", parent->ifname); + printf("\"%s (%zu)\" -> ", parent->ifname, parent->rdepends_count); - printf("\"%s\"", iface->ifname); + printf("\"%s (%zu)\"", iface->ifname, iface->rdepends_count); printf("\n");