Commit df54aae0 authored by Jan Engelhardt's avatar Jan Engelhardt Committed by David S. Miller

[NETFILTER]: x_tables: use %u format specifiers

Use %u format specifiers as ->family is unsigned.
Signed-off-by: default avatarJan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 051578cc
...@@ -414,7 +414,7 @@ clusterip_tg_check(const char *tablename, const void *e_void, ...@@ -414,7 +414,7 @@ clusterip_tg_check(const char *tablename, const void *e_void,
if (nf_ct_l3proto_try_module_get(target->family) < 0) { if (nf_ct_l3proto_try_module_get(target->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for " printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", target->family); "proto=%u\n", target->family);
return false; return false;
} }
......
...@@ -95,7 +95,7 @@ connmark_tg_check(const char *tablename, const void *entry, ...@@ -95,7 +95,7 @@ connmark_tg_check(const char *tablename, const void *entry,
} }
if (nf_ct_l3proto_try_module_get(target->family) < 0) { if (nf_ct_l3proto_try_module_get(target->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for " printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", target->family); "proto=%u\n", target->family);
return false; return false;
} }
return true; return true;
......
...@@ -106,7 +106,7 @@ connsecmark_tg_check(const char *tablename, const void *entry, ...@@ -106,7 +106,7 @@ connsecmark_tg_check(const char *tablename, const void *entry,
if (nf_ct_l3proto_try_module_get(target->family) < 0) { if (nf_ct_l3proto_try_module_get(target->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for " printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", target->family); "proto=%u\n", target->family);
return false; return false;
} }
return true; return true;
......
...@@ -111,7 +111,7 @@ connbytes_mt_check(const char *tablename, const void *ip, ...@@ -111,7 +111,7 @@ connbytes_mt_check(const char *tablename, const void *ip,
if (nf_ct_l3proto_try_module_get(match->family) < 0) { if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for " printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family); "proto=%u\n", match->family);
return false; return false;
} }
......
...@@ -61,7 +61,7 @@ connmark_mt_check(const char *tablename, const void *ip, ...@@ -61,7 +61,7 @@ connmark_mt_check(const char *tablename, const void *ip,
} }
if (nf_ct_l3proto_try_module_get(match->family) < 0) { if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for " printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family); "proto=%u\n", match->family);
return false; return false;
} }
return true; return true;
......
...@@ -117,7 +117,7 @@ conntrack_mt_check(const char *tablename, const void *ip, ...@@ -117,7 +117,7 @@ conntrack_mt_check(const char *tablename, const void *ip,
{ {
if (nf_ct_l3proto_try_module_get(match->family) < 0) { if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for " printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family); "proto=%u\n", match->family);
return false; return false;
} }
return true; return true;
......
...@@ -66,7 +66,7 @@ helper_mt_check(const char *tablename, const void *inf, ...@@ -66,7 +66,7 @@ helper_mt_check(const char *tablename, const void *inf,
if (nf_ct_l3proto_try_module_get(match->family) < 0) { if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for " printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family); "proto=%u\n", match->family);
return false; return false;
} }
info->name[29] = '\0'; info->name[29] = '\0';
......
...@@ -47,7 +47,7 @@ state_mt_check(const char *tablename, const void *inf, ...@@ -47,7 +47,7 @@ state_mt_check(const char *tablename, const void *inf,
{ {
if (nf_ct_l3proto_try_module_get(match->family) < 0) { if (nf_ct_l3proto_try_module_get(match->family) < 0) {
printk(KERN_WARNING "can't load conntrack support for " printk(KERN_WARNING "can't load conntrack support for "
"proto=%d\n", match->family); "proto=%u\n", match->family);
return false; return false;
} }
return true; return true;
......
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