Skip to content

Commit 60ab988

Browse files
samples: net: Fix MAC address logging to include correct third byte
Previously, mac->addr[2] was skipped and mac->addr[3] was duplicated. This change ensures all six MAC address bytes are logged in the correct order. Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
1 parent 8fee983 commit 60ab988

File tree

1 file changed

+1
-1
lines changed
  • samples/net/secure_mqtt_sensor_actuator/src

1 file changed

+1
-1
lines changed

samples/net/secure_mqtt_sensor_actuator/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void log_mac_addr(struct net_if *iface)
5353
mac = net_if_get_link_addr(iface);
5454

5555
LOG_INF("MAC Address: %02X:%02X:%02X:%02X:%02X:%02X",
56-
mac->addr[0], mac->addr[1], mac->addr[3],
56+
mac->addr[0], mac->addr[1], mac->addr[2],
5757
mac->addr[3], mac->addr[4], mac->addr[5]);
5858
}
5959

0 commit comments

Comments
 (0)