net: cosmetic: Make the MAC address string less magical
authoroliver@schinagl.nl <oliver@schinagl.nl>
Fri, 25 Nov 2016 15:30:20 +0000 (16:30 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 7 Feb 2017 16:54:32 +0000 (10:54 -0600)
commit9f455bcb34fcab31b0eb8eec5702105c8d4bde18
tree9d69ec52062805b09896a80088d121cb58dde93c
parenta40db6d511712f53b6663e61786a9eb825589984
net: cosmetic: Make the MAC address string less magical

In u-boot printf has been extended with the %pM formatter to allow
printing of MAC addresses. However buffers that want to store a MAC
address cannot safely get the size. Add a define for this case so the
string of a MAC address can be reliably obtained.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
include/net.h
net/eth_common.c