blob: db9f35aff5c4a1a18cc51780c077624a96c0ac41 [file] [log] [blame]
developer66e89bc2024-04-23 14:50:01 +08001From 5f64b702482d5818b8573d12ef1b58af00bbd81d Mon Sep 17 00:00:00 2001
2From: Johannes Berg <johannes.berg@intel.com>
3Date: Wed, 31 Aug 2022 21:13:11 +0200
4Subject: [PATCH 10/28] link: fix some formatting
5
6The bss flags has a spurious newline, and we don't use a
7tab for indentation after the colon in other places, fix
8that here.
9
10Signed-off-by: Johannes Berg <johannes.berg@intel.com>
11---
12 link.c | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15diff --git a/link.c b/link.c
16index 2074488..31de8b4 100644
17--- a/link.c
18+++ b/link.c
19@@ -181,7 +181,7 @@ static int print_link_sta(struct nl_msg *msg, void *arg)
20 fprintf(stderr, "failed to parse nested bss parameters!\n");
21 } else {
22 char *delim = "";
23- printf("\n\tbss flags:\t");
24+ printf("\tbss flags: ");
25 if (binfo[NL80211_STA_BSS_PARAM_CTS_PROT]) {
26 printf("CTS-protection");
27 delim = " ";
28@@ -192,9 +192,9 @@ static int print_link_sta(struct nl_msg *msg, void *arg)
29 }
30 if (binfo[NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME])
31 printf("%sshort-slot-time", delim);
32- printf("\n\tdtim period:\t%d",
33+ printf("\n\tdtim period: %d",
34 nla_get_u8(binfo[NL80211_STA_BSS_PARAM_DTIM_PERIOD]));
35- printf("\n\tbeacon int:\t%d",
36+ printf("\n\tbeacon int: %d",
37 nla_get_u16(binfo[NL80211_STA_BSS_PARAM_BEACON_INTERVAL]));
38 printf("\n");
39 }
40--
412.39.2
42