fsl/fman: Use vsprintf extension %pM

Make logging of an ethernet address more consistent with
the rest of the kernel.

Miscellanea:

The %02hx use also did not quite match the u8 definition
of addr though that did not actually matter given normal
integer promotion rules.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Joe Perches 2019-03-01 16:37:25 -08:00 коммит произвёл David S. Miller
Родитель 9036b2fe09
Коммит 6bfc1128d5
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -855,9 +855,7 @@ static int mac_probe(struct platform_device *_of_dev)
if (err < 0) if (err < 0)
dev_err(dev, "fman_set_mac_active_pause() = %d\n", err); dev_err(dev, "fman_set_mac_active_pause() = %d\n", err);
dev_info(dev, "FMan MAC address: %02hx:%02hx:%02hx:%02hx:%02hx:%02hx\n", dev_info(dev, "FMan MAC address: %pM\n", mac_dev->addr);
mac_dev->addr[0], mac_dev->addr[1], mac_dev->addr[2],
mac_dev->addr[3], mac_dev->addr[4], mac_dev->addr[5]);
priv->eth_dev = dpaa_eth_add_device(fman_id, mac_dev); priv->eth_dev = dpaa_eth_add_device(fman_id, mac_dev);
if (IS_ERR(priv->eth_dev)) { if (IS_ERR(priv->eth_dev)) {