Skip to content

Commit

Permalink
netfilter: nf_log: Replace a seq_printf() call by seq_puts() in seq_s…
Browse files Browse the repository at this point in the history
…how()

A string which did not contain a data format specification should be put
into a sequence. Thus use the corresponding function “seq_puts”.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Markus Elfring authored and Pablo Neira Ayuso committed Jul 4, 2019
1 parent f0c1aab commit eca27f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nf_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ static int seq_show(struct seq_file *s, void *v)
continue;

logger = nft_log_dereference(loggers[*pos][i]);
seq_printf(s, "%s", logger->name);
seq_puts(s, logger->name);
if (i == 0 && loggers[*pos][i + 1] != NULL)
seq_puts(s, ",");

Expand Down

0 comments on commit eca27f1

Please sign in to comment.