Skip to content

Commit

Permalink
drivers: eth: gmac: Fix MAC address info log
Browse files Browse the repository at this point in the history
Each MAC byte should be printed with the %02x format.

Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
  • Loading branch information
tgorochowik authored and galak committed Apr 17, 2019
1 parent 3a6c786 commit a000ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ethernet/eth_sam_gmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ static void eth0_iface_init(struct net_if *iface)

generate_mac(dev_data->mac_addr);

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]);
Expand Down

0 comments on commit a000ba7

Please sign in to comment.