diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /net/atm/br2684.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff) |
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff.
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 | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index 81eb4f4cbe10..c742d37bfb97 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c | |||
@@ -709,17 +709,13 @@ static int br2684_seq_show(struct seq_file *seq, void *v) | |||
709 | br2684_devs); | 709 | br2684_devs); |
710 | const struct net_device *net_dev = brdev->net_dev; | 710 | const struct net_device *net_dev = brdev->net_dev; |
711 | const struct br2684_vcc *brvcc; | 711 | const struct br2684_vcc *brvcc; |
712 | DECLARE_MAC_BUF(mac); | ||
712 | 713 | ||
713 | seq_printf(seq, "dev %.16s: num=%d, mac=%02X:%02X:" | 714 | seq_printf(seq, "dev %.16s: num=%d, mac=%s (%s)\n", |
714 | "%02X:%02X:%02X:%02X (%s)\n", net_dev->name, | 715 | net_dev->name, |
715 | brdev->number, | 716 | brdev->number, |
716 | net_dev->dev_addr[0], | 717 | print_mac(mac, net_dev->dev_addr), |
717 | net_dev->dev_addr[1], | 718 | brdev->mac_was_set ? "set" : "auto"); |
718 | net_dev->dev_addr[2], | ||
719 | net_dev->dev_addr[3], | ||
720 | net_dev->dev_addr[4], | ||
721 | net_dev->dev_addr[5], | ||
722 | brdev->mac_was_set ? "set" : "auto"); | ||
723 | 719 | ||
724 | list_for_each_entry(brvcc, &brdev->brvccs, brvccs) { | 720 | list_for_each_entry(brvcc, &brdev->brvccs, brvccs) { |
725 | seq_printf(seq, " vcc %d.%d.%d: encaps=%s" | 721 | seq_printf(seq, " vcc %d.%d.%d: encaps=%s" |