@@ -58,16 +58,16 @@ impl<'a> NetworkInterface<'a> {
5858 #[ cfg( feature = "trace" ) ]
5959 let mut device = Tracer :: new ( device, |timestamp, printer| trace ! ( "{timestamp} {printer}" ) ) ;
6060
61- if hermit_var ! ( "HERMIT_IP" ) . is_some ( ) {
61+ if let Some ( hermit_ip ) = hermit_var ! ( "HERMIT_IP" ) {
6262 warn ! (
63- "A static IP address is specified with the environment variable HERMIT_IP, but the device is configured to use DHCPv4! "
63+ "Device is configured to use DHCPv4, but the environment variable HERMIT_IP has set the following static IP address: {hermit_ip} "
6464 ) ;
6565 }
6666
6767 let ethernet_addr = EthernetAddress ( [ mac[ 0 ] , mac[ 1 ] , mac[ 2 ] , mac[ 3 ] , mac[ 4 ] , mac[ 5 ] ] ) ;
6868 let hardware_addr = HardwareAddress :: Ethernet ( ethernet_addr) ;
6969
70- info ! ( "MAC address {hardware_addr}" ) ;
70+ info ! ( "MAC Address: {hardware_addr}" ) ;
7171 let capabilities = device. capabilities ( ) ;
7272 info ! ( "{:?}" , capabilities. checksum) ;
7373 info ! ( "MTU: {} bytes" , capabilities. max_transmission_unit) ;
@@ -132,9 +132,9 @@ impl<'a> NetworkInterface<'a> {
132132 let hardware_addr = HardwareAddress :: Ethernet ( ethernet_addr) ;
133133 let ip_addr = IpCidr :: from ( Ipv4Cidr :: from_netmask ( myip, mymask) . unwrap ( ) ) ;
134134
135- info ! ( "MAC address {hardware_addr}" ) ;
136- info ! ( "Configure network interface with address {ip_addr}" ) ;
137- info ! ( "Configure gateway with address {mygw}" ) ;
135+ info ! ( "MAC Address: {hardware_addr}" ) ;
136+ info ! ( "IPv4: {ip_addr}" ) ;
137+ info ! ( "Gateway IP: {mygw}" ) ;
138138 let capabilities = device. capabilities ( ) ;
139139 info ! ( "{:?}" , capabilities. checksum) ;
140140 info ! ( "MTU: {} bytes" , capabilities. max_transmission_unit) ;
0 commit comments