Skip to contentSkip to conversation

iw: align output for HT capabilities

PATCH Superseded pat-lkml 2 participants 3 messages Feb 3, 2009

lore
Share & tools
lore

pat-lkml

author
#0 lore raw

PATCH 1/1 iw: align output for HT capabilities

The HT capabilities have an additional space in front of them causing them not to line up with the rest of the listed outputs. This patch removes that space.

---

info.c +0 -0
index bf3b8bd..69be500 100644
@@ -70,7 +70,7 @@ static int print_phy_handler(struct nl_msg *msg, void

*arg)
#ifdef NL80211_BAND_ATTR_HT_CAPA
if (tb_band[NL80211_BAND_ATTR_HT_CAPA]) {
unsigned short cap = nla_get_u16(tb_band[NL80211_BAND_ATTR_HT_CAPA]);
-#define PCOM(fmt, args...) do { printf("\t\t\t * " fmt "\n", ##args); }
while (0)
+#define PCOM(fmt, args...) do { printf("\t\t\t* " fmt "\n", ##args); }
while (0)
#define PBCOM(bit, args...) if (cap & (bit)) PCOM(args)
printf("\t\tHT capabilities: 0x%.4x\n", cap); PBCOM(0x0001, "LPDC coding");

#1 lore raw
Quoted 13 lines · pat-lkml

The HT capabilities have an additional space in front of them causing them not to line up with the rest of the listed outputs. This patch removes that space.

---

info.c +0 -0
index bf3b8bd..69be500 100644

info.c static int print_phy_handler(struct nl_msg *msg, void · line 76

Quoted 8 lines
info.c +1 -1
@@ -70,7 +70,7 @@ static int print_phy_handler(struct nl_msg *msg, void
 *arg)
 #ifdef NL80211_BAND_ATTR_HT_CAPA
               if (tb_band[NL80211_BAND_ATTR_HT_CAPA]) {
                       unsigned short cap = nla_get_u16(tb_band[NL80211_BAND_ATTR_HT_CAPA]);
-#define PCOM(fmt, args...) do { printf("\t\t\t * " fmt "\n", ##args); }
 while (0)
+#define PCOM(fmt, args...) do { printf("\t\t\t* " fmt "\n", ##args); }
 while (0)

Is it just me or is this patch line-wrapped?

Thanks,

Signature · 4 lines
Julian Calaby

Email: [email protected]
.Plan: http://sites.google.com/site/juliancalaby/
author
#2 lore raw
Quoted 25 lines · Julian Calaby
Quoted 13 lines · pat-lkml

The HT capabilities have an additional space in front of them causing them not to line up with the rest of the listed outputs. This patch removes that space.

---

info.c +0 -0
index bf3b8bd..69be500 100644

info.c static int print_phy_handler(struct nl_msg *msg, void · line 76

Quoted 8 lines
info.c +1 -1
@@ -70,7 +70,7 @@ static int print_phy_handler(struct nl_msg *msg, void
 *arg)
 #ifdef NL80211_BAND_ATTR_HT_CAPA
               if (tb_band[NL80211_BAND_ATTR_HT_CAPA]) {
                       unsigned short cap = nla_get_u16(tb_band[NL80211_BAND_ATTR_HT_CAPA]);
-#define PCOM(fmt, args...) do { printf("\t\t\t * " fmt "\n", ##args); }
 while (0)
+#define PCOM(fmt, args...) do { printf("\t\t\t* " fmt "\n", ##args); }
 while (0)

Is it just me or is this patch line-wrapped?

Quoted 2 lines

Thanks,

no, it line wrapped. Weird that it'd line wrap the function def but not the line later on me, but I guess it's time to look into fixing my mail client.

Thanks,
Pat