aboutsummaryrefslogtreecommitdiffstats
path: root/net/appletalk/aarp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/appletalk/aarp.c')
-rw-r--r--net/appletalk/aarp.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/net/appletalk/aarp.c b/net/appletalk/aarp.c
index e9a51a69870e..92cd74973c97 100644
--- a/net/appletalk/aarp.c
+++ b/net/appletalk/aarp.c
@@ -997,6 +997,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v)
997 struct aarp_iter_state *iter = seq->private; 997 struct aarp_iter_state *iter = seq->private;
998 struct aarp_entry *entry = v; 998 struct aarp_entry *entry = v;
999 unsigned long now = jiffies; 999 unsigned long now = jiffies;
1000 DECLARE_MAC_BUF(mac);
1000 1001
1001 if (v == SEQ_START_TOKEN) 1002 if (v == SEQ_START_TOKEN)
1002 seq_puts(seq, 1003 seq_puts(seq,
@@ -1007,13 +1008,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v)
1007 ntohs(entry->target_addr.s_net), 1008 ntohs(entry->target_addr.s_net),
1008 (unsigned int) entry->target_addr.s_node, 1009 (unsigned int) entry->target_addr.s_node,
1009 entry->dev ? entry->dev->name : "????"); 1010 entry->dev ? entry->dev->name : "????");
1010 seq_printf(seq, "%02X:%02X:%02X:%02X:%02X:%02X", 1011 seq_printf(seq, "%s", print_mac(mac, entry->hwaddr));
1011 entry->hwaddr[0] & 0xFF,
1012 entry->hwaddr[1] & 0xFF,
1013 entry->hwaddr[2] & 0xFF,
1014 entry->hwaddr[3] & 0xFF,
1015 entry->hwaddr[4] & 0xFF,
1016 entry->hwaddr[5] & 0xFF);
1017 seq_printf(seq, " %8s", 1012 seq_printf(seq, " %8s",
1018 dt2str((long)entry->expires_at - (long)now)); 1013 dt2str((long)entry->expires_at - (long)now));
1019 if (iter->table == unresolved) 1014 if (iter->table == unresolved)