#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.
Return values are dependent on the option performed:
| 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 |