Fix MAC address getter convenience function in C API

This commit is contained in:
Joseph Henry
2021-05-18 12:38:24 -07:00
parent eac36f781d
commit bd12a1736b

View File

@@ -453,7 +453,7 @@ ZTS_API int ZTCALL zts_net_get_mac_str(uint64_t net_id, char* dst, unsigned int
dst,
ZTS_MAC_ADDRSTRLEN,
"%x:%x:%x:%x:%x:%x",
(mac >> 48) & 0xFF,
(mac >> 40) & 0xFF,
(mac >> 32) & 0xFF,
(mac >> 24) & 0xFF,
(mac >> 16) & 0xFF,