Commit eca27f14 authored by Markus Elfring's avatar Markus Elfring Committed by Pablo Neira Ayuso

netfilter: nf_log: Replace a seq_printf() call by seq_puts() in seq_show()

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent f0c1aab2
...@@ -374,7 +374,7 @@ static int seq_show(struct seq_file *s, void *v) ...@@ -374,7 +374,7 @@ static int seq_show(struct seq_file *s, void *v)
continue; continue;
logger = nft_log_dereference(loggers[*pos][i]); 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) if (i == 0 && loggers[*pos][i + 1] != NULL)
seq_puts(s, ","); seq_puts(s, ",");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment