forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

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)?,