commit c63783ee894b3b6b360ba5179bed4f6962bf82fc
parent 069d6d1d9c0d576f6861ad69f29f59829239c04b
Author: Neehar Vijay <env252525@gmail.com>
Date: Thu, 3 Nov 2022 01:52:57 +0530
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
Diffstat:
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/client/station.c b/client/station.c
@@ -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)