Returns error-log entries.
#include <diag/diag.h> int error_log_get ( option, criteria, err_data ) int option; char *criteria; struct errdata *err_data;
The error_log_get subroutine allows the Diagnostic Application (DA) to query the error log for entries.
The NVRAMEL option is only supported on the POWER-based platform:
Return values are dependent on the option performed:
| Return Value | Description |
|---|---|
| INIT | 0: No error |
| 1: Error-log entry available | |
| -1: Error obtaining data | |
| SUBSEQ | 0: No more entries available |
| 1: Error-log entry available | |
| TERMI | 0: Terminate successful |
| NVRAMEL | 0: No entries matching criteria |
| 1: Error-log entry available | |
| -1: Error accessing NVRAM | |
| -2: Invalid criteria |