]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
link: fix some formatting
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 Aug 2022 19:13:11 +0000 (21:13 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 10:55:37 +0000 (12:55 +0200)
The bss flags has a spurious newline, and we don't use a
tab for indentation after the colon in other places, fix
that here.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
link.c

diff --git a/link.c b/link.c
index 207448898603ac746c322d48867bb2d57dd4a550..31de8b4b451262782d87a94bc93b8d317080cb5b 100644 (file)
--- a/link.c
+++ b/link.c
@@ -181,7 +181,7 @@ static int print_link_sta(struct nl_msg *msg, void *arg)
                        fprintf(stderr, "failed to parse nested bss parameters!\n");
                } else {
                        char *delim = "";
-                       printf("\n\tbss flags:\t");
+                       printf("\tbss flags: ");
                        if (binfo[NL80211_STA_BSS_PARAM_CTS_PROT]) {
                                printf("CTS-protection");
                                delim = " ";
@@ -192,9 +192,9 @@ static int print_link_sta(struct nl_msg *msg, void *arg)
                        }
                        if (binfo[NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME])
                                printf("%sshort-slot-time", delim);
-                       printf("\n\tdtim period:\t%d",
+                       printf("\n\tdtim period: %d",
                               nla_get_u8(binfo[NL80211_STA_BSS_PARAM_DTIM_PERIOD]));
-                       printf("\n\tbeacon int:\t%d",
+                       printf("\n\tbeacon int: %d",
                               nla_get_u16(binfo[NL80211_STA_BSS_PARAM_BEACON_INTERVAL]));
                        printf("\n");
                }