* [PATCH] client: use display_table_row for IPv6 in station
@ 2024-07-23 16:18 Yuki Sireneva
2024-07-23 23:54 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Yuki Sireneva @ 2024-07-23 16:18 UTC (permalink / raw)
To: iwd; +Cc: Yuki Sireneva
IPv6 address entry was not updated to use display_table_row which led to
a shifted line in table, as shown below:
$ iwctl station wlan0 show | head | sed 's| |.|g'
.................................Station:.wlan0................................
--------------------------------------------------------------------------------
..Settable..Property..............Value..........................................
--------------------------------------------------------------------------------
............Scanning..............no...............................................
............State.................connected........................................
............Connected.network.....Clannad.Legacy...................................
............IPv4.address..........192.168.1.12.....................................
............IPv6.address........fdc3:541d:864f:0:96db:c9ff:fe36:b15............
............ConnectedBss..........cc:d8:43:77:91:0e................................
This patch aligns IPv6 address line with other lines in the table.
Fixes: 35dd2c08219a (client: update station to use display_table_row, 2022-07-07)
---
client/station.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/client/station.c b/client/station.c
index 1d958ef2..16c86dac 100644
--- a/client/station.c
+++ b/client/station.c
@@ -175,8 +175,7 @@ static void display_addresses(const char *device_name)
continue;
have_address = true;
- display("%s%*s %-*s%-*s\n", MARGIN, 8, "", 20,
- "IPv6 address", 47, addrstr);
+ display_table_row(MARGIN, 3, 8, "", 20, "IPv6 address", 47, addrstr);
} else if (cur->ifa_addr->sa_family == AF_INET) {
struct sockaddr_in *si =
(struct sockaddr_in *) cur->ifa_addr;
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] client: use display_table_row for IPv6 in station
2024-07-23 16:18 [PATCH] client: use display_table_row for IPv6 in station Yuki Sireneva
@ 2024-07-23 23:54 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2024-07-23 23:54 UTC (permalink / raw)
To: Yuki Sireneva, iwd
Hi Yuki,
On 7/23/24 11:18 AM, Yuki Sireneva wrote:
> IPv6 address entry was not updated to use display_table_row which led to
> a shifted line in table, as shown below:
>
> $ iwctl station wlan0 show | head | sed 's| |.|g'
> .................................Station:.wlan0................................
> --------------------------------------------------------------------------------
> ..Settable..Property..............Value..........................................
> --------------------------------------------------------------------------------
> ............Scanning..............no...............................................
> ............State.................connected........................................
> ............Connected.network.....Clannad.Legacy...................................
> ............IPv4.address..........192.168.1.12.....................................
> ............IPv6.address........fdc3:541d:864f:0:96db:c9ff:fe36:b15............
> ............ConnectedBss..........cc:d8:43:77:91:0e................................
>
> This patch aligns IPv6 address line with other lines in the table.
>
> Fixes: 35dd2c08219a (client: update station to use display_table_row, 2022-07-07)
> ---
> client/station.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-23 23:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-23 16:18 [PATCH] client: use display_table_row for IPv6 in station Yuki Sireneva
2024-07-23 23:54 ` Denis Kenzior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox