Skip to contentSkip to conversation

rfkill: expand all acronyms in type string descriptions

PATCH Applied Sami Kerola 2 participants 4 messages Oct 14, 2017 – Oct 17, 2017 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rfkill: expand all acronyms in type string descriptions

Be as verbose as possible when user wants that. This also fixes small typo from 7d2a9960ad that made gps to look like a GUID Partition Table.

---
 sys-utils/rfkill.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
sys-utils/rfkill.c +6 -6
index 195386c8f..2b667f7c7 100644
@@ -57,16 +57,16 @@ struct rfkill_type_str {
 
 static const struct rfkill_type_str rfkill_type_strings[] = {
 	{ .type = RFKILL_TYPE_ALL,       .name = "all"           },
-	{ .type = RFKILL_TYPE_WLAN,      .name = "wlan",         .desc = "Wireless LAN" },
+	{ .type = RFKILL_TYPE_WLAN,      .name = "wlan",         .desc = "Wireless Local Area Network" },
 	{ .type = RFKILL_TYPE_WLAN,      .name = "wifi"          },				/* alias */
 	{ .type = RFKILL_TYPE_BLUETOOTH, .name = "bluetooth",    .desc = "Bluetooth" },
 	{ .type = RFKILL_TYPE_UWB,       .name = "uwb",          .desc = "Ultra-Wideband" },
 	{ .type = RFKILL_TYPE_UWB,       .name = "ultrawideband" }, /* alias */
-	{ .type = RFKILL_TYPE_WIMAX,     .name = "wimax",        .desc = "WiMAX" },
-	{ .type = RFKILL_TYPE_WWAN,      .name = "wwan",         .desc = "Wireless WAN" },
-	{ .type = RFKILL_TYPE_GPS,       .name = "gps",          .desc = "GPT" },
-	{ .type = RFKILL_TYPE_FM,        .name = "fm",           .desc = "FM" },
-	{ .type = RFKILL_TYPE_NFC,       .name = "nfc",          .desc = "NFC" },
+	{ .type = RFKILL_TYPE_WIMAX,     .name = "wimax",        .desc = "Worldwide Interoperability for Microwave Access" },
+	{ .type = RFKILL_TYPE_WWAN,      .name = "wwan",         .desc = "Wireless Wide Area Network" },
+	{ .type = RFKILL_TYPE_GPS,       .name = "gps",          .desc = "Global Positioning System" },
+	{ .type = RFKILL_TYPE_FM,        .name = "fm",           .desc = "Frequency Modulation radio" },
+	{ .type = RFKILL_TYPE_NFC,       .name = "nfc",          .desc = "Near-Field Communication" },
 	{ .type = NUM_RFKILL_TYPES,      .name = NULL            }
 };
 
Signature · 1 line
2.14.2
maintainer
#1 lore raw
Quoted 24 lines · Sami Kerola

Be as verbose as possible when user wants that. This also fixes small typo from 7d2a9960ad that made gps to look like a GUID Partition Table.

---
 sys-utils/rfkill.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
sys-utils/rfkill.c +1 -3
index 195386c8f..2b667f7c7 100644
@@ -57,16 +57,16 @@ struct rfkill_type_str {
 
 static const struct rfkill_type_str rfkill_type_strings[] = {
 	{ .type = RFKILL_TYPE_ALL,       .name = "all"           },
-	{ .type = RFKILL_TYPE_WLAN,      .name = "wlan",         .desc = "Wireless LAN" },
+	{ .type = RFKILL_TYPE_WLAN,      .name = "wlan",         .desc = "Wireless Local Area Network" },
 	{ .type = RFKILL_TYPE_WLAN,      .name = "wifi"          },				/* alias */
 	{ .type = RFKILL_TYPE_BLUETOOTH, .name = "bluetooth",    .desc = "Bluetooth" },
 	{ .type = RFKILL_TYPE_UWB,       .name = "uwb",          .desc = "Ultra-Wideband" },
 	{ .type = RFKILL_TYPE_UWB,       .name = "ultrawideband" }, /* alias */
-	{ .type = RFKILL_TYPE_WIMAX,     .name = "wimax",        .desc = "WiMAX" },
-	{ .type = RFKILL_TYPE_WWAN,      .name = "wwan",         .desc = "Wireless WAN" },

sys-utils/rfkill.c struct rfkill_type_str { · line 71

Quoted 10 lines
sys-utils/rfkill.c +5 -3
-	{ .type = RFKILL_TYPE_GPS,       .name = "gps",          .desc = "GPT" },
-	{ .type = RFKILL_TYPE_FM,        .name = "fm",           .desc = "FM" },
-	{ .type = RFKILL_TYPE_NFC,       .name = "nfc",          .desc = "NFC" },
+	{ .type = RFKILL_TYPE_WIMAX,     .name = "wimax",        .desc = "Worldwide Interoperability for Microwave Access" },
+	{ .type = RFKILL_TYPE_WWAN,      .name = "wwan",         .desc = "Wireless Wide Area Network" },
+	{ .type = RFKILL_TYPE_GPS,       .name = "gps",          .desc = "Global Positioning System" },
+	{ .type = RFKILL_TYPE_FM,        .name = "fm",           .desc = "Frequency Modulation radio" },
+	{ .type = RFKILL_TYPE_NFC,       .name = "nfc",          .desc = "Near-Field Communication" },
 	{ .type = NUM_RFKILL_TYPES,      .name = NULL            }
 };

So, the default "list" output will be *again* backwardly incompatible :-)

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
author Reviewed-by Karel Zak
#2 lore raw
Quoted 1 line · Karel Zak

So, the default "list" output will be *again* backwardly incompatible :-)

Yep, that would not be good. I should have looked a little bit close what was done with these descriptiosn. Anyway, lets get the s/GPT/GPS/ fixed.

--->8----

Quoted 1 line

From 4a74c9b1675f4c4f2ff6ce69bdb5808da9c258af Mon Sep 17 00:00:00 2001

From: Sami Kerola <[email protected]>
Date: Sat, 14 Oct 2017 22:18:21 +0100
Subject: [PATCH] rfkill: fix description name typo

Commit 7d2a9960ad made gps to look like a GUID Partition Table.

---
 sys-utils/rfkill.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sys-utils/rfkill.c +1 -1
index 013806020..c31da7997 100644
@@ -64,7 +64,7 @@ static const struct rfkill_type_str rfkill_type_strings[] = {
 	{ .type = RFKILL_TYPE_UWB,       .name = "ultrawideband" }, /* alias */
 	{ .type = RFKILL_TYPE_WIMAX,     .name = "wimax",        .desc = "WiMAX" },
 	{ .type = RFKILL_TYPE_WWAN,      .name = "wwan",         .desc = "Wireless WAN" },
-	{ .type = RFKILL_TYPE_GPS,       .name = "gps",          .desc = "GPT" },
+	{ .type = RFKILL_TYPE_GPS,       .name = "gps",          .desc = "GPS" },
 	{ .type = RFKILL_TYPE_FM,        .name = "fm",           .desc = "FM" },
 	{ .type = RFKILL_TYPE_NFC,       .name = "nfc",          .desc = "NFC" },
 	{ .type = NUM_RFKILL_TYPES,      .name = NULL            }
Signature · 1 line
2.14.2
maintainer Applied
#3 lore raw
Quoted 2 lines · Sami Kerola
 sys-utils/rfkill.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com