Skip to content
Browse files

drivers: eth: gmac: Fix MAC address info log

Each MAC byte should be printed with the %02x format.

Signed-off-by: Tomasz Gorochowik <>
  • Loading branch information...
tgorochowik authored and galak committed Apr 1, 2019
1 parent 3a6c786 commit a000ba797c97ac1b649e611f8f083591e17f4ad0
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/ethernet/eth_sam_gmac.c
@@ -1685,7 +1685,7 @@ static void eth0_iface_init(struct net_if *iface)


LOG_INF("MAC: %x:%x:%x:%x:%x:%x",
LOG_INF("MAC: %02x:%02x:%02x:%02x:%02x:%02x",
dev_data->mac_addr[0], dev_data->mac_addr[1],
dev_data->mac_addr[2], dev_data->mac_addr[3],
dev_data->mac_addr[4], dev_data->mac_addr[5]);

0 comments on commit a000ba7

Please sign in to comment.
You can’t perform that action at this time.