mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 01:50:35 +00:00
net: fix printing ethernet addresses
This commit is contained in:
@@ -8,8 +8,9 @@ namespace net {
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, ethernet_address ea) {
|
||||
auto& m = ea.mac;
|
||||
using u = uint32_t;
|
||||
return fprint(os, "%02x:%02x:%02x:%02x:%02x:%02x",
|
||||
m[0], m[1], m[2], m[3], m[4], m[5]);
|
||||
u(m[0]), u(m[1]), u(m[2]), u(m[3]), u(m[4]), u(m[5]));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user