diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2019-07-02 20:06:30 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-07-04 02:29:48 +0200 |
commit | eca27f14b1168a8962023571b29d2ec593788b61 (patch) | |
tree | 0fcb0fb4b8d973e06735e70ca9ef20b881f084b8 | |
parent | f0c1aab2bd1ad131d9d7528b9dcbf9253a74e5da (diff) | |
download | linux-eca27f14b1168a8962023571b29d2ec593788b61.tar.gz linux-eca27f14b1168a8962023571b29d2ec593788b61.tar.bz2 linux-eca27f14b1168a8962023571b29d2ec593788b61.zip |
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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | net/netfilter/nf_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 3574a212bdc2..bb25d4c794c7 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c @@ -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, ","); |