提交 df54aae0 编写于 作者: J Jan Engelhardt 提交者: David S. Miller

[NETFILTER]: x_tables: use %u format specifiers

Use %u format specifiers as ->family is unsigned.
Signed-off-by: NJan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 051578cc
......@@ -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;
}
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
}
......
......@@ -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;
......
......@@ -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;
......
......@@ -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';
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册