mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
95ea36275f
commit
0795af5729
228 changed files with 1875 additions and 1952 deletions
|
|
@ -997,6 +997,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v)
|
|||
struct aarp_iter_state *iter = seq->private;
|
||||
struct aarp_entry *entry = v;
|
||||
unsigned long now = jiffies;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
if (v == SEQ_START_TOKEN)
|
||||
seq_puts(seq,
|
||||
|
|
@ -1007,13 +1008,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v)
|
|||
ntohs(entry->target_addr.s_net),
|
||||
(unsigned int) entry->target_addr.s_node,
|
||||
entry->dev ? entry->dev->name : "????");
|
||||
seq_printf(seq, "%02X:%02X:%02X:%02X:%02X:%02X",
|
||||
entry->hwaddr[0] & 0xFF,
|
||||
entry->hwaddr[1] & 0xFF,
|
||||
entry->hwaddr[2] & 0xFF,
|
||||
entry->hwaddr[3] & 0xFF,
|
||||
entry->hwaddr[4] & 0xFF,
|
||||
entry->hwaddr[5] & 0xFF);
|
||||
seq_printf(seq, "%s", print_mac(mac, entry->hwaddr));
|
||||
seq_printf(seq, " %8s",
|
||||
dt2str((long)entry->expires_at - (long)now));
|
||||
if (iter->table == unresolved)
|
||||
|
|
|
|||
Loading…
Reference in a new issue