mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -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
|
|
@ -337,3 +337,11 @@ struct net_device *alloc_etherdev_mq(int sizeof_priv, unsigned int queue_count)
|
|||
return alloc_netdev_mq(sizeof_priv, "eth%d", ether_setup, queue_count);
|
||||
}
|
||||
EXPORT_SYMBOL(alloc_etherdev_mq);
|
||||
|
||||
char *print_mac(char *buf, const u8 *addr)
|
||||
{
|
||||
sprintf(buf, MAC_FMT,
|
||||
addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
|
||||
return buf;
|
||||
}
|
||||
EXPORT_SYMBOL(print_mac);
|
||||
|
|
|
|||
Loading…
Reference in a new issue