iwd.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] client: fix spurious newlines in station show
@ 2022-11-02  9:21 eNV25
  2022-11-02  9:21 ` [PATCH 2/2] gitignore: add .cache eNV25
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: eNV25 @ 2022-11-02  9:21 UTC (permalink / raw)
  To: iwd; +Cc: eNV25

This change removes duplicated 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

---
 client/station.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/client/station.c b/client/station.c
index b070807b..1d958ef2 100644
--- 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)
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-02 20:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02  9:21 [PATCH 1/2] client: fix spurious newlines in station show eNV25
2022-11-02  9:21 ` [PATCH 2/2] gitignore: add .cache eNV25
2022-11-02 18:59 ` [PATCH 1/2] client: fix spurious newlines in station show James Prestwood
2022-11-02 19:59 ` Denis Kenzior
2022-11-02 20:13   ` eNV25

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).