netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch iproute2] ipaddress: add a black line for each device to make the output more readable
@ 2013-11-11 15:03 Hangbin Liu
  2013-11-11 15:08 ` Hangbin Liu
  2013-11-11 16:31 ` Jiri Benc
  0 siblings, 2 replies; 4+ messages in thread
From: Hangbin Liu @ 2013-11-11 15:03 UTC (permalink / raw)
  To: network dev; +Cc: Hangbin Liu

When we have multi links, the output huddled together and make it hard to read.
Let's use the old ifconfig output style.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
 ip/ipaddress.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index 1c3e4da..9570f16 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -782,6 +782,7 @@ static int print_selected_addrinfo(int ifindex, struct nlmsg_list *ainfo, FILE *
 
 		print_addrinfo(NULL, n, fp);
 	}
+	fprintf(fp, "\n");
 	return 0;
 }
 
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-12  2:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-11 15:03 [patch iproute2] ipaddress: add a black line for each device to make the output more readable Hangbin Liu
2013-11-11 15:08 ` Hangbin Liu
2013-11-11 16:31 ` Jiri Benc
2013-11-12  2:09   ` Hangbin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).