Fixed Parser Folder Checking

* Adjusted help text
* Adjusted --afid to run only with --cper-file
* Fixed interface return error

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I2b96f4515c85f3b9dd84ba5c2d819729a997141b
This commit is contained in:
Maisam Arif
2025-06-09 23:44:09 -05:00
committed by Arif, Maisam
parent fb592e003a
commit ac63f410c2
6 changed files with 58 additions and 27 deletions
+1 -1
View File
@@ -2560,7 +2560,7 @@ def amdsmi_get_afids_from_cper(
ctypes.byref(num_afids_ct)
)
if status != amdsmi_wrapper.AMDSMI_STATUS_SUCCESS:
raise AmdSmiLibraryException(f"get_afids failed: {status}")
raise AmdSmiLibraryException(status)
# Collect exactly the decoded AFIDs
count = num_afids_ct.value