Skip to content

Commit a000ba7

Browse files
tgorochowikgalak
authored andcommitted
drivers: eth: gmac: Fix MAC address info log
Each MAC byte should be printed with the %02x format. Signed-off-by: Tomasz Gorochowik <[email protected]>
1 parent 3a6c786 commit a000ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/eth_sam_gmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,7 @@ static void eth0_iface_init(struct net_if *iface)
16851685

16861686
generate_mac(dev_data->mac_addr);
16871687

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

0 commit comments

Comments
 (0)