diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-10-08 05:35:15 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-10-08 05:35:15 -0400 |
commit | 102befab75c438bfa356c6976026326728771ebc (patch) | |
tree | a94e951f1d5f1a21833c90483970f01079fd5bb7 | |
parent | 043ef46c7690bfdbd5b012e15812a14a19ca5604 (diff) |
netfilter: x_tables: output bad hook mask in hexadecimal
It is a mask, and masks are most useful in hex.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | net/netfilter/x_tables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index 0e23f42e3411..3b1fc40cc274 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c | |||
@@ -342,7 +342,7 @@ int xt_check_match(const struct xt_match *match, unsigned short family, | |||
342 | return -EINVAL; | 342 | return -EINVAL; |
343 | } | 343 | } |
344 | if (match->hooks && (hook_mask & ~match->hooks) != 0) { | 344 | if (match->hooks && (hook_mask & ~match->hooks) != 0) { |
345 | printk("%s_tables: %s match: bad hook_mask %u/%u\n", | 345 | printk("%s_tables: %s match: bad hook_mask %#x/%#x\n", |
346 | xt_prefix[family], match->name, hook_mask, match->hooks); | 346 | xt_prefix[family], match->name, hook_mask, match->hooks); |
347 | return -EINVAL; | 347 | return -EINVAL; |
348 | } | 348 | } |
@@ -483,7 +483,7 @@ int xt_check_target(const struct xt_target *target, unsigned short family, | |||
483 | return -EINVAL; | 483 | return -EINVAL; |
484 | } | 484 | } |
485 | if (target->hooks && (hook_mask & ~target->hooks) != 0) { | 485 | if (target->hooks && (hook_mask & ~target->hooks) != 0) { |
486 | printk("%s_tables: %s target: bad hook_mask %u/%u\n", | 486 | printk("%s_tables: %s target: bad hook_mask %#x/%#x\n", |
487 | xt_prefix[family], target->name, hook_mask, | 487 | xt_prefix[family], target->name, hook_mask, |
488 | target->hooks); | 488 | target->hooks); |
489 | return -EINVAL; | 489 | return -EINVAL; |