diff options
author | Antonio Quartulli <a@unstable.cc> | 2016-03-12 10:30:18 +0100 |
---|---|---|
committer | Antonio Quartulli <a@unstable.cc> | 2016-05-03 20:22:03 +0200 |
commit | 925a6f379036c58cd62a1492f83263ebe021a49d (patch) | |
tree | 043aa18ef5731c4add7b2ef6b1d6c0b7e240e4da /net/batman-adv/distributed-arp-table.c | |
parent | batman-adv: Start new development cycle (diff) | |
download | linux-925a6f379036c58cd62a1492f83263ebe021a49d.tar.xz linux-925a6f379036c58cd62a1492f83263ebe021a49d.zip |
batman-adv: use static string for table headers
Use a static string when showing table headers rather then
a nonsense parametric one with fixed arguments.
It is easier to grep and it does not need to be recomputed
at runtime each time.
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
[sven@narfation.org: fix conflicts with current version]
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/distributed-arp-table.c')
-rw-r--r-- | net/batman-adv/distributed-arp-table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/distributed-arp-table.c b/net/batman-adv/distributed-arp-table.c index e96d7c745b4a..ce574e9cef3b 100644 --- a/net/batman-adv/distributed-arp-table.c +++ b/net/batman-adv/distributed-arp-table.c @@ -814,8 +814,8 @@ int batadv_dat_cache_seq_print_text(struct seq_file *seq, void *offset) goto out; seq_printf(seq, "Distributed ARP Table (%s):\n", net_dev->name); - seq_printf(seq, " %-7s %-9s %4s %11s\n", "IPv4", - "MAC", "VID", "last-seen"); + seq_puts(seq, + " IPv4 MAC VID last-seen\n"); for (i = 0; i < hash->size; i++) { head = &hash->table[i]; |