diff --git a/alxd/src/device/mod.rs b/alxd/src/device/mod.rs index bf1f19a68f..ba6219e6e5 100644 --- a/alxd/src/device/mod.rs +++ b/alxd/src/device/mod.rs @@ -1702,7 +1702,7 @@ impl Alx { let mac = self.get_perm_macaddr(); print!("{}", format!(" - MAC: {:>02X}:{:>02X}:{:>02X}:{:>02X}:{:>02X}:{:>02X}\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); - let _ = setcfg("mac", &format!("{:>02X}.{:>02X}.{:>02X}.{:>02X}.{:>02X}.{:>02X}\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); + let _ = setcfg("mac", &format!("{:>02X}-{:>02X}-{:>02X}-{:>02X}-{:>02X}-{:>02X}\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); if ! self.get_phy_info() { println!(" - Identify PHY failed"); diff --git a/e1000d/src/device.rs b/e1000d/src/device.rs index 077b8f4a80..194dd4eef7 100644 --- a/e1000d/src/device.rs +++ b/e1000d/src/device.rs @@ -306,7 +306,7 @@ impl Intel8254x { mac_high as u8, (mac_high >> 8) as u8]; print!("{}", format!(" - MAC: {:>02X}:{:>02X}:{:>02X}:{:>02X}:{:>02X}:{:>02X}\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); - let _ = setcfg("mac", &format!("{:>02X}.{:>02X}.{:>02X}.{:>02X}.{:>02X}.{:>02X}\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); + let _ = setcfg("mac", &format!("{:>02X}-{:>02X}-{:>02X}-{:>02X}-{:>02X}-{:>02X}\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); // // MTA => 0; diff --git a/rtl8168d/src/device.rs b/rtl8168d/src/device.rs index 6873f37291..a3c8ac476f 100644 --- a/rtl8168d/src/device.rs +++ b/rtl8168d/src/device.rs @@ -220,7 +220,7 @@ impl Rtl8168 { mac_high as u8, (mac_high >> 8) as u8]; print!("{}", format!(" - MAC: {:>02X}:{:>02X}:{:>02X}:{:>02X}:{:>02X}:{:>02X}\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); - let _ = setcfg("mac", &format!("{:>02X}.{:>02X}.{:>02X}.{:>02X}.{:>02X}.{:>02X}\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); + let _ = setcfg("mac", &format!("{:>02X}-{:>02X}-{:>02X}-{:>02X}-{:>02X}-{:>02X}\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); // Reset - this will disable tx and rx, reinitialize FIFOs, and set the system buffer pointer to the initial value self.regs.cmd.writef(1 << 4, true);