diff options
author | Antonio Quartulli <ordex@autistici.org> | 2013-03-21 12:23:29 +0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-03-27 13:29:55 +0400 |
commit | 0c81465357ffe29da9ff20103afe4a59908e0d30 (patch) | |
tree | 5772694c77eca193a52c55ef7a55e7619ee5ebef /net/batman-adv/vis.c | |
parent | 9cb812c54e7fe4a1485c92430dc1fc289dd221dd (diff) | |
download | linux-0c81465357ffe29da9ff20103afe4a59908e0d30.tar.xz |
batman-adv: use seq_puts instead of seq_printf when the format is constant
As reported by checkpatch, seq_puts has to be preferred with
respect to seq_printf when the format is a constant string
(no va_args)
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/vis.c')
-rw-r--r-- | net/batman-adv/vis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/vis.c b/net/batman-adv/vis.c index c053244b97bd..962ccf3b8382 100644 --- a/net/batman-adv/vis.c +++ b/net/batman-adv/vis.c @@ -149,7 +149,7 @@ static void batadv_vis_data_read_prim_sec(struct seq_file *seq, hlist_for_each_entry(entry, if_list, list) { if (entry->primary) - seq_printf(seq, "PRIMARY, "); + seq_puts(seq, "PRIMARY, "); else seq_printf(seq, "SEC %pM, ", entry->addr); } @@ -207,7 +207,7 @@ static void batadv_vis_data_read_entries(struct seq_file *seq, if (batadv_compare_eth(entry->addr, packet->vis_orig)) batadv_vis_data_read_prim_sec(seq, list); - seq_printf(seq, "\n"); + seq_puts(seq, "\n"); } } |