aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pppoe.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-10-03 20:59:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:42 -0400
commit0795af5729b18218767fab27c44b1384f72dc9ad (patch)
tree67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/pppoe.c
parent95ea36275f3c9a1d3d04c217b4b576c657c4e70e (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 'drivers/net/pppoe.c')
-rw-r--r--drivers/net/pppoe.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index 2f130e06b6dc..ba2eb04aac9f 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -955,6 +955,7 @@ static int pppoe_seq_show(struct seq_file *seq, void *v)
955{ 955{
956 struct pppox_sock *po; 956 struct pppox_sock *po;
957 char *dev_name; 957 char *dev_name;
958 DECLARE_MAC_BUF(mac);
958 959
959 if (v == SEQ_START_TOKEN) { 960 if (v == SEQ_START_TOKEN) {
960 seq_puts(seq, "Id Address Device\n"); 961 seq_puts(seq, "Id Address Device\n");
@@ -964,11 +965,8 @@ static int pppoe_seq_show(struct seq_file *seq, void *v)
964 po = v; 965 po = v;
965 dev_name = po->pppoe_pa.dev; 966 dev_name = po->pppoe_pa.dev;
966 967
967 seq_printf(seq, "%08X %02X:%02X:%02X:%02X:%02X:%02X %8s\n", 968 seq_printf(seq, "%08X %s %8s\n",
968 po->pppoe_pa.sid, 969 po->pppoe_pa.sid, print_mac(mac, po->pppoe_pa.remote), dev_name);
969 po->pppoe_pa.remote[0], po->pppoe_pa.remote[1],
970 po->pppoe_pa.remote[2], po->pppoe_pa.remote[3],
971 po->pppoe_pa.remote[4], po->pppoe_pa.remote[5], dev_name);
972out: 970out:
973 return 0; 971 return 0;
974} 972}