mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NET]: Restore sanity wrt. print_mac().
MAC_FMT had only one user and we tried to get rid of that, but this created more problems than it solved. As a result, this reverts three commits:235365f3aa
("net/8021q/vlan_dev.c: Use print_mac."),fea5fa875e
("[NET]: Remove MAC_FMT"), and8f789c4844
("[NET]: Elminate spurious print_mac() calls.") Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bc4bf5f38c
commit
55b01e8681
2 changed files with 8 additions and 5 deletions
|
@ -129,7 +129,8 @@ extern ssize_t sysfs_format_mac(char *buf, const unsigned char *addr, int len);
|
|||
/*
|
||||
* Display a 6 byte device address (MAC) in a readable format.
|
||||
*/
|
||||
extern __pure char *print_mac(char *buf, const unsigned char *addr);
|
||||
extern char *print_mac(char *buf, const unsigned char *addr);
|
||||
#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
|
||||
#define MAC_BUF_SIZE 18
|
||||
#define DECLARE_MAC_BUF(var) char var[MAC_BUF_SIZE] __maybe_unused
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue