2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

firmware: more readable network addresses message

This commit is contained in:
Sebastien Bourdeauducq 2019-10-21 14:00:14 +08:00
parent 818d6b2f5a
commit 47a83c71f1

View File

@ -16,7 +16,7 @@ pub struct NetAddresses {
impl fmt::Display for NetAddresses {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "MAC:{} IPv4:{} IPv6-LL:{} IPv6:",
write!(f, "MAC={} IPv4={} IPv6-LL={} IPv6=",
self.hardware_addr, self.ipv4_addr, self.ipv6_ll_addr)?;
match self.ipv6_addr {
Some(addr) => write!(f, "{}", addr)?,