diff --git a/eth_interface.c b/eth_interface.c index a6dcf3f..f70793a 100644 --- a/eth_interface.c +++ b/eth_interface.c @@ -122,14 +122,14 @@ static ThreadReturnType task_ethintf(ThreadParamType param) { } else { // if link is off dhcp_stop(intf->dhcp); } + } - // print generic message - MSG("ETH LINK: %s%s", (ls ? (ANSI_COLOR_BGREEN "UP ") : (ANSI_COLOR_BRED "DOWN\n")), ANSI_COLOR_RESET); + // print generic message + MSG("ETH LINK: %s%s", (ls ? (ANSI_COLOR_BGREEN "UP ") : (ANSI_COLOR_BRED "DOWN\n")), ANSI_COLOR_RESET); - // print link properties - if (ls) { - MSG("(%u Mbps, %s duplex)\n", speed, duplex ? "FULL" : "HALF"); - } + // print link properties + if (ls) { + MSG("(%u Mbps, %s duplex)\n", speed, duplex ? "FULL" : "HALF"); } } break; @@ -262,7 +262,7 @@ void ethinf_get_config(EthInterface *intf, EthInterfaceNetworkConfig *config) { config->manageDhcp = intf->manageDhcp; } -void ethinf_print_info(const EthInterface * intf) { +void ethinf_print_info(const EthInterface *intf) { MSG("IP: " ANSI_COLOR_BYELLOW); PRINT_IPv4(intf->ip); MSG(ANSI_COLOR_RESET "\nRouter: "); @@ -277,7 +277,7 @@ void ethinf_print_info(const EthInterface * intf) { bool on = dhcp_get_fsm_state(intf->dhcp) != DHCP_STOPPED; MSG("DHCP is %s" ANSI_COLOR_RESET " %s.", on ? (ANSI_COLOR_BGREEN "RUNNING") : (ANSI_COLOR_BRED "STOPPED"), intf->manageDhcp ? "[automanaged]" : ""); } else { - MSG ("DHCP is " ANSI_COLOR_RED "ABSENT" ANSI_COLOR_RESET "."); + MSG("DHCP is " ANSI_COLOR_RED "ABSENT" ANSI_COLOR_RESET "."); } MSG("\n");