Only show afnetns details when details are requested.

Signed-off-by: Hannes Frederic Sowa <han...@stressinduktion.org>
---
 ip/ipaddress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index d954f3ea5bff40..cfb58e70e4f29f 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -1219,7 +1219,7 @@ int print_addrinfo(const struct sockaddr_nl *who, struct 
nlmsghdr *n,
                                fprintf(fp, "%usec", ci->ifa_prefered);
                }
        }
-       if (rta_tb[IFA_AFNETNS_INODE]) {
+       if (show_details && rta_tb[IFA_AFNETNS_INODE]) {
                ino_t inode;
                char *name;
 
-- 
2.9.3

Reply via email to