Skip to contentSkip to conversation

libie: fix string names for AQ error codes

PATCH Applied Tony Nguyen 2 participants 2 messages Sep 23, 2025 – Sep 25, 2025

Subsystems (4)
lore
Share & tools
lore

Tony Nguyen

author maintainer
#0 lore raw

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

From: Jacob Keller <[email protected]>

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),
Signature · 1 line
2.47.1
#1 lore raw
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Tue, 23 Sep 2025 13:56:56 -0700 you wrote:

From: Jacob Keller <[email protected]>

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.

[...]

Here is the summary with links:
- [net] libie: fix string names for AQ error codes

    https://git.kernel.org/netdev/net/c/b7e32ae66642

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html