Skip to content

Commit b7e32ae

Browse files
jacob-kellerkuba-moo
authored andcommitted
libie: fix string names for AQ error codes
The LIBIE_AQ_STR macro() introduced by commit 5feaa7a ("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. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Fixes: 5feaa7a ("libie: add adminq helper for converting err to str") Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Link: https://patch.msgid.link/20250923205657.846759-1-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 181d981 commit b7e32ae

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/intel/libie

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
static const char * const libie_aq_str_arr[] = {
88
#define LIBIE_AQ_STR(x) \
9-
[LIBIE_AQ_RC_##x] = "LIBIE_AQ_RC" #x
9+
[LIBIE_AQ_RC_##x] = "LIBIE_AQ_RC_" #x
1010
LIBIE_AQ_STR(OK),
1111
LIBIE_AQ_STR(EPERM),
1212
LIBIE_AQ_STR(ENOENT),

0 commit comments

Comments
 (0)