diff options
author | Joe Perches <joe@perches.com> | 2015-07-31 09:54:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-01 01:25:52 +0300 |
commit | 85b1d8bbfd2ea6ae1dc6d0ccdb25abdcb52a5856 (patch) | |
tree | 8b095afdb6dd787f6e995ae4b37545c2901fc73a /net/atm/br2684.c | |
parent | e90fba8d9f6067cd511f7b855518eebda6bf2532 (diff) | |
download | linux-85b1d8bbfd2ea6ae1dc6d0ccdb25abdcb52a5856.tar.xz |
br2684: Remove unnecessary formatting macros b1 and bs
Use vsprintf extension %pI4 instead.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/br2684.c')
-rw-r--r-- | net/atm/br2684.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index cc78538d163b..aa0047c5c467 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c @@ -802,13 +802,10 @@ static int br2684_seq_show(struct seq_file *seq, void *v) (brdev->payload == p_bridged) ? "bridged" : "routed", brvcc->copies_failed, brvcc->copies_needed); #ifdef CONFIG_ATM_BR2684_IPFILTER -#define b1(var, byte) ((u8 *) &brvcc->filter.var)[byte] -#define bs(var) b1(var, 0), b1(var, 1), b1(var, 2), b1(var, 3) if (brvcc->filter.netmask != 0) - seq_printf(seq, " filter=%d.%d.%d.%d/" - "%d.%d.%d.%d\n", bs(prefix), bs(netmask)); -#undef bs -#undef b1 + seq_printf(seq, " filter=%pI4/%pI4\n", + &brvcc->filter.prefix, + &brvcc->filter.netmask); #endif /* CONFIG_ATM_BR2684_IPFILTER */ } return 0; |