[PATCH] drivers/net/stmmac/gmac.c: use %pM to show MAC address

From: H Hartley Sweeten
Date: Wed Dec 30 2009 - 15:20:51 EST


Use the %pM kernel extension to display the MAC address.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: David S. Miller <davem@xxxxxxxxxxxxx>
---

diff --git a/drivers/net/stmmac/gmac.c b/drivers/net/stmmac/gmac.c
index 52586ee..7700772 100644
--- a/drivers/net/stmmac/gmac.c
+++ b/drivers/net/stmmac/gmac.c
@@ -481,12 +481,8 @@ static void gmac_set_filter(struct net_device *dev)
gmac_set_umac_addr(ioaddr, uc_ptr->da_addr,
i + 1);

- DBG(KERN_INFO "\t%d "
- "- Unicast addr %02x:%02x:%02x:%02x:%02x:"
- "%02x\n", i + 1,
- uc_ptr->da_addr[0], uc_ptr->da_addr[1],
- uc_ptr->da_addr[2], uc_ptr->da_addr[3],
- uc_ptr->da_addr[4], uc_ptr->da_addr[5]);
+ DBG(KERN_INFO "\t%d - Unicast addr %pM\n",
+ i + 1, uc_ptr->da_addr);
uc_ptr = uc_ptr->next;
}
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/