diff options
author | Thomas Graf <tgraf@suug.ch> | 2010-11-16 23:06:34 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2010-11-16 23:06:34 (GMT) |
commit | 4d28cc51bc5f55df3c3e37e54ab378a9cf9001f4 (patch) | |
tree | 7b42914a95e31912952de13eb6b53e6569d20f29 /lib | |
parent | f56317f4b87fe9d69cecf3874a7b05e6bd7c15b2 (diff) | |
download | libnl-4d28cc51bc5f55df3c3e37e54ab378a9cf9001f4.zip libnl-4d28cc51bc5f55df3c3e37e54ab378a9cf9001f4.tar.gz libnl-4d28cc51bc5f55df3c3e37e54ab378a9cf9001f4.tar.bz2 |
link/inet: pretty printing, make output more readable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/route/link/inet.c | 6 |
1 files 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) |