developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 1 | From 5f64b702482d5818b8573d12ef1b58af00bbd81d Mon Sep 17 00:00:00 2001 |
| 2 | From: Johannes Berg <johannes.berg@intel.com> |
| 3 | Date: Wed, 31 Aug 2022 21:13:11 +0200 |
| 4 | Subject: [PATCH 10/28] link: fix some formatting |
| 5 | |
| 6 | The bss flags has a spurious newline, and we don't use a |
| 7 | tab for indentation after the colon in other places, fix |
| 8 | that here. |
| 9 | |
| 10 | Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
| 11 | --- |
| 12 | link.c | 6 +++--- |
| 13 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 14 | |
| 15 | diff --git a/link.c b/link.c |
| 16 | index 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 | -- |
| 41 | 2.39.2 |
| 42 | |