diff options
author | Antonio Quartulli <ordex@autistici.org> | 2013-03-21 04:23:29 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-03-27 05:29:55 -0400 |
commit | 0c81465357ffe29da9ff20103afe4a59908e0d30 (patch) | |
tree | 5772694c77eca193a52c55ef7a55e7619ee5ebef /net/batman-adv/gateway_client.c | |
parent | 9cb812c54e7fe4a1485c92430dc1fc289dd221dd (diff) |
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/gateway_client.c')
-rw-r--r-- | net/batman-adv/gateway_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c index 34f99a46ec1d..f105219f4a4b 100644 --- a/net/batman-adv/gateway_client.c +++ b/net/batman-adv/gateway_client.c | |||
@@ -500,7 +500,7 @@ int batadv_gw_client_seq_print_text(struct seq_file *seq, void *offset) | |||
500 | rcu_read_unlock(); | 500 | rcu_read_unlock(); |
501 | 501 | ||
502 | if (gw_count == 0) | 502 | if (gw_count == 0) |
503 | seq_printf(seq, "No gateways in range ...\n"); | 503 | seq_puts(seq, "No gateways in range ...\n"); |
504 | 504 | ||
505 | out: | 505 | out: |
506 | if (primary_if) | 506 | if (primary_if) |