Skip to content

Commit 20a1d16

Browse files
richardweinbergerdavem330
authored andcommitted
netfilter: Fix format string of nfnetlink_log proc file
The printed values are all of type unsigned integer, therefore use %u instead of %d. Otherwise an user can face negative values. Signed-off-by: Richard Weinberger <[email protected]> Acked-by: Pablo Neira Ayuso <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6b46f7b commit 20a1d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nfnetlink_log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ static int seq_show(struct seq_file *s, void *v)
10071007
{
10081008
const struct nfulnl_instance *inst = v;
10091009

1010-
seq_printf(s, "%5d %6d %5d %1d %5d %6d %2d\n",
1010+
seq_printf(s, "%5u %6u %5u %1u %5u %6u %2u\n",
10111011
inst->group_num,
10121012
inst->peer_portid, inst->qlen,
10131013
inst->copy_mode, inst->copy_range,

0 commit comments

Comments
 (0)