Skip to content

Commit

Permalink
[NETFILTER]: x_tables: use %u format specifiers
Browse files Browse the repository at this point in the history
Use %u format specifiers as ->family is unsigned.

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jan Engelhardt authored and David S. Miller committed Jan 28, 2008
1 parent 051578c commit df54aae
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion net/ipv4/netfilter/ipt_CLUSTERIP.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ clusterip_tg_check(const char *tablename, const void *e_void,

if (nf_ct_l3proto_try_module_get(target->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", target->family);
"proto=%u\n", target->family);
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/xt_CONNMARK.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ connmark_tg_check(const char *tablename, const void *entry,
}
if (nf_ct_l3proto_try_module_get(target->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", target->family);
"proto=%u\n", target->family);
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/xt_CONNSECMARK.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ connsecmark_tg_check(const char *tablename, const void *entry,

if (nf_ct_l3proto_try_module_get(target->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", target->family);
"proto=%u\n", target->family);
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/xt_connbytes.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ connbytes_mt_check(const char *tablename, const void *ip,

if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family);
"proto=%u\n", match->family);
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/xt_connmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ connmark_mt_check(const char *tablename, const void *ip,
}
if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family);
"proto=%u\n", match->family);
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/xt_conntrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ conntrack_mt_check(const char *tablename, const void *ip,
{
if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family);
"proto=%u\n", match->family);
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/xt_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ helper_mt_check(const char *tablename, const void *inf,

if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family);
"proto=%u\n", match->family);
return false;
}
info->name[29] = '\0';
Expand Down
2 changes: 1 addition & 1 deletion net/netfilter/xt_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ state_mt_check(const char *tablename, const void *inf,
{
if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family);
"proto=%u\n", match->family);
return false;
}
return true;
Expand Down

0 comments on commit df54aae

Please sign in to comment.