3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

client: fix extra newlines in station show

This change removes duplicate calls to display_table_footer(), in
station show.

Before this change, the bug caused an extra newline to be output every
time the table updated. This only occurred when the network was
disconnected.

    $ iwctl
    [iwd]# station wlan0 show
This commit is contained in:
Neehar Vijay 2022-11-03 01:52:57 +05:30 committed by Denis Kenzior
parent 069d6d1d9c
commit c63783ee89

View File

@ -217,15 +217,9 @@ static void display_station(const char *device_name,
47, network_get_name(station->connected_network));
display_addresses(device_name);
/*
* If connected the diagnostic interface is presumably up so
* don't add the table footer just yet.
*/
return;
}
display_table_footer();
/* The table footer is handled by cmd_show. */
}
static void display_station_inline(const char *margin, const void *data)