mirror of https://github.com/m-labs/artiq.git
firmware: more readable network addresses message
This commit is contained in:
parent
818d6b2f5a
commit
47a83c71f1
|
@ -16,7 +16,7 @@ pub struct NetAddresses {
|
||||||
|
|
||||||
impl fmt::Display for NetAddresses {
|
impl fmt::Display for NetAddresses {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
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)?;
|
self.hardware_addr, self.ipv4_addr, self.ipv6_ll_addr)?;
|
||||||
match self.ipv6_addr {
|
match self.ipv6_addr {
|
||||||
Some(addr) => write!(f, "{}", addr)?,
|
Some(addr) => write!(f, "{}", addr)?,
|
||||||
|
|
Loading…
Reference in New Issue