summaryrefslogtreecommitdiff
path: root/net/netfilter/xt_LOG.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-06-28 18:42:41 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-06-28 18:50:35 +0200
commitca1aa54f272d47bec77baa292f803df7a81f966b (patch)
tree69d211ac6d79968d4a012db92df80384367f6486 /net/netfilter/xt_LOG.c
parentc1878869c0c8e0def3df5397155f369442ce4e06 (diff)
netfilter: xt_LOG: add missing string format in nf_log_packet()
net/netfilter/xt_LOG.c: In function 'log_tg': >> net/netfilter/xt_LOG.c:43: error: format not a string literal and no format arguments Fixes: fab4085 ("netfilter: log: nf_log_packet() as real unified interface") Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_LOG.c')
-rw-r--r--net/netfilter/xt_LOG.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_LOG.c b/net/netfilter/xt_LOG.c
index 00eb49196e75..c13b79440ede 100644
--- a/net/netfilter/xt_LOG.c
+++ b/net/netfilter/xt_LOG.c
@@ -40,7 +40,7 @@ log_tg(struct sk_buff *skb, const struct xt_action_param *par)
li.u.log.logflags = loginfo->logflags;
nf_log_packet(net, par->family, par->hooknum, skb, par->in, par->out,
- &li, loginfo->prefix);
+ &li, "%s", loginfo->prefix);
return XT_CONTINUE;
}