From 4d28cc51bc5f55df3c3e37e54ab378a9cf9001f4 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Wed, 17 Nov 2010 00:06:34 +0100 Subject: link/inet: pretty printing, make output more readable --- lib/route/link/inet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/route/link/inet.c b/lib/route/link/inet.c index 9de3c94..68afa45 100644 --- a/lib/route/link/inet.c +++ b/lib/route/link/inet.c @@ -182,16 +182,16 @@ static void inet_dump_details(struct rtnl_link *link, nl_dump_line(p, " "); for (i = 0; i < IPV4_DEVCONF_MAX; i++) { - nl_dump_line(p, "%s %u", + nl_dump_line(p, "%-19s %3u", rtnl_link_inet_devconf2str(i+1, buf, sizeof(buf)), id->i_conf[i]); - if (++n == 4) { + if (++n == 3) { nl_dump(p, "\n"); nl_dump_line(p, " "); n = 0; } else - nl_dump(p, " "); + nl_dump(p, " "); } if (n != 0) -- cgit v0.12