Skip to contentSkip to conversation

libie: fix string names for AQ error codes

PATCH In review Jacob Keller 3 participants 3 messages Sep 16, 2025 – Sep 17, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libie: fix string names for AQ error codes

The LIBIE_AQ_STR macro() introduced by commit 5feaa7a07b85 ("libie: add adminq helper for converting err to str") is used in order to generate strings for printing human readable error codes. Its definition is missing the separating underscore ('_') character which makes the resulting strings difficult to read. Additionally, the string won't match the source code, preventing search tools from working properly.

Add the missing underscore character, fixing the error string names.

Fixes 5feaa7a07b85 ("libie: add adminq helper for converting err to str")

---
I found this recently while reviewing the libie code. I believe this warrants a net fix because it is both simple, and because users may attempt to pass printed error codes into search tools like grep, and will be unable to locate the error values without manually adding the missing '_'.

---
 drivers/net/ethernet/intel/libie/adminq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/libie/adminq.c +1 -1
index 55356548e3f0..7b4ff479e7e5 100644
@@ -6,7 +6,7 @@
 
 static const char * const libie_aq_str_arr[] = {
 #define LIBIE_AQ_STR(x)					\
-	[LIBIE_AQ_RC_##x]	= "LIBIE_AQ_RC" #x
+	[LIBIE_AQ_RC_##x]	= "LIBIE_AQ_RC_" #x
 	LIBIE_AQ_STR(OK),
 	LIBIE_AQ_STR(EPERM),
 	LIBIE_AQ_STR(ENOENT),

---
base-commit: 93ab4881a4e2b9657bdce4b8940073bfb4ed5eab
change-id: 20250916-jk-fix-missing-underscore-e2ffc7e39438

Best regards,

Signature · 1 line
Jacob Keller <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw

Dear Jacob,

Thank you for your patch.

Am 16.09.25 um 22:09 schrieb Jacob Keller:

Quoted 9 lines

The LIBIE_AQ_STR macro() introduced by commit 5feaa7a07b85 ("libie: add adminq helper for converting err to str") is used in order to generate strings for printing human readable error codes. Its definition is missing the separating underscore ('_') character which makes the resulting strings difficult to read. Additionally, the string won't match the source code, preventing search tools from working properly.

Add the missing underscore character, fixing the error string names.

Quoted 7 lines
Fixes 5feaa7a07b85 ("libie: add adminq helper for converting err to str")

---
I found this recently while reviewing the libie code. I believe this warrants a net fix because it is both simple, and because users may attempt to pass printed error codes into search tools like grep, and will be unable to locate the error values without manually adding the missing '_'.

As always, great commit message! Thank you.

Quoted 9 lines
---
  drivers/net/ethernet/intel/libie/adminq.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/libie/adminq.c +0 -0
index 55356548e3f0..7b4ff479e7e5 100644

drivers/net/ethernet/intel/libie/adminq.c line 12

Quoted 8 lines
drivers/net/ethernet/intel/libie/adminq.c +1 -1
@@ -6,7 +6,7 @@
 
  static const char * const libie_aq_str_arr[] = {
  #define LIBIE_AQ_STR(x)					\
-	[LIBIE_AQ_RC_##x]	= "LIBIE_AQ_RC" #x
+	[LIBIE_AQ_RC_##x]	= "LIBIE_AQ_RC_" #x
  	LIBIE_AQ_STR(OK),
  	LIBIE_AQ_STR(EPERM),
  	LIBIE_AQ_STR(ENOENT),

Kind regards,

Paul

Reviewed-by on v1 1/1
#2 lore raw
In reply to Jacob Keller
Quoted 60 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Jacob Keller
Sent: Tuesday, September 16, 2025 10:09 PM
To: Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Lobakin, Aleksander <[email protected]>; Andrew Lunn <[email protected]>; David S. Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; Michal Swiatkowski <[email protected]>
Cc: [email protected]; [email protected]; linux- [email protected]; Keller, Jacob E <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net] libie: fix string names for AQ error codes

The LIBIE_AQ_STR macro() introduced by commit 5feaa7a07b85 ("libie:
add adminq helper for converting err to str") is used in order to generate strings for printing human readable error codes. Its definition is missing the separating underscore ('_') character which makes the resulting strings difficult to read. Additionally, the string won't match the source code, preventing search tools from working properly.

Add the missing underscore character, fixing the error string names.

Fixes 5feaa7a07b85 ("libie: add adminq helper for converting err to

str")
---
I found this recently while reviewing the libie code. I believe this warrants a net fix because it is both simple, and because users may attempt to pass printed error codes into search tools like grep, and will be unable to locate the error values without manually adding the missing '_'.

---
 drivers/net/ethernet/intel/libie/adminq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/libie/adminq.c +1 -2
index 55356548e3f0..7b4ff479e7e5 100644
@@ -6,7 +6,7 @@
 
 static const char * const libie_aq_str_arr[] = {
 #define LIBIE_AQ_STR(x)					\
-	[LIBIE_AQ_RC_##x]	= "LIBIE_AQ_RC" #x
+	[LIBIE_AQ_RC_##x]	= "LIBIE_AQ_RC_" #x
 	LIBIE_AQ_STR(OK),
 	LIBIE_AQ_STR(EPERM),
 	LIBIE_AQ_STR(ENOENT),
 
---

base-commit: 93ab4881a4e2b9657bdce4b8940073bfb4ed5eab
change-id: 20250916-jk-fix-missing-underscore-e2ffc7e39438

Quoted 3 lines

Best regards,
--
Jacob Keller <[email protected]>