From c54aa03e54c10fdf1494891efb70b3ab90e85c32 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 20 Jul 2017 19:02:50 -0600 Subject: [PATCH] Add newlines to network config --- alxd/src/device/mod.rs | 2 +- e1000d/src/device.rs | 2 +- rtl8168d/src/device.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alxd/src/device/mod.rs b/alxd/src/device/mod.rs index ebdd04e42a..bf1f19a68f 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}", 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 280c2d3197..077b8f4a80 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}", 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 bde150b626..6873f37291 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}", 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);