diff --git a/projects/amdsmi/docs/reference/amdsmi-py-api.md b/projects/amdsmi/docs/reference/amdsmi-py-api.md index 91fd3dcc25..656f6f5629 100644 --- a/projects/amdsmi/docs/reference/amdsmi-py-api.md +++ b/projects/amdsmi/docs/reference/amdsmi-py-api.md @@ -1165,7 +1165,7 @@ Input parameters: * `buffer_size` pointer to a variable that specifies the size of the cper_data * `cursor` pointer to a variable that will contain the cursor for the next call -Output: Dictionary with fields +Output: Dictionary with fields, updated cursor, and a dictionary of the cper_data Field | Description ---|--- @@ -1192,15 +1192,15 @@ Example: ```python for device in devices: - entries, new_cursor = amdsmi_get_gpu_cper_entries(device, severity_mask, buffer_size, initial_cursor) - print("CPER entries for device", device) - for key, entry in entries.items(): - print("Entry", key) - print(" Error Severity:", entry.get("error_severity", "Unknown")) - print(" Notify Type:", entry.get("notify_type", "Unknown")) - print(" Timestamp:", entry.get("timestamp", "")) - print() - print("New Cursor Position:", new_cursor) + entries, new_cursor, cper_data = amdsmi_get_gpu_cper_entries(device, severity_mask, buffer_size, initial_cursor) + print("CPER entries for device", device) + for key, entry in entries.items(): + print("Entry", key) + print(" Error Severity:", entry.get("error_severity", "Unknown")) + print(" Notify Type:", entry.get("notify_type", "Unknown")) + print(" Timestamp:", entry.get("timestamp", "")) + print() + print("New Cursor Position:", new_cursor) except AmdSmiException as e: print(e) ```