diff options
-rw-r--r-- | net/netfilter/x_tables.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index 0eb2504b89b5..520eddf4d61b 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c | |||
@@ -320,8 +320,8 @@ int xt_check_match(const struct xt_match *match, unsigned short family, | |||
320 | return -EINVAL; | 320 | return -EINVAL; |
321 | } | 321 | } |
322 | if (match->hooks && (hook_mask & ~match->hooks) != 0) { | 322 | if (match->hooks && (hook_mask & ~match->hooks) != 0) { |
323 | printk("%s_tables: %s match: bad hook_mask %u\n", | 323 | printk("%s_tables: %s match: bad hook_mask %u/%u\n", |
324 | xt_prefix[family], match->name, hook_mask); | 324 | xt_prefix[family], match->name, hook_mask, match->hooks); |
325 | return -EINVAL; | 325 | return -EINVAL; |
326 | } | 326 | } |
327 | if (match->proto && (match->proto != proto || inv_proto)) { | 327 | if (match->proto && (match->proto != proto || inv_proto)) { |
@@ -410,8 +410,9 @@ int xt_check_target(const struct xt_target *target, unsigned short family, | |||
410 | return -EINVAL; | 410 | return -EINVAL; |
411 | } | 411 | } |
412 | if (target->hooks && (hook_mask & ~target->hooks) != 0) { | 412 | if (target->hooks && (hook_mask & ~target->hooks) != 0) { |
413 | printk("%s_tables: %s target: bad hook_mask %u\n", | 413 | printk("%s_tables: %s target: bad hook_mask %u/%u\n", |
414 | xt_prefix[family], target->name, hook_mask); | 414 | xt_prefix[family], target->name, hook_mask, |
415 | target->hooks); | ||
415 | return -EINVAL; | 416 | return -EINVAL; |
416 | } | 417 | } |
417 | if (target->proto && (target->proto != proto || inv_proto)) { | 418 | if (target->proto && (target->proto != proto || inv_proto)) { |