save_davars_ela
Purpose
Formats SRN and create DAVars object with error log information.
Syntax
#include <diag/diag_log.h>
int save_davars_ela(struct fru_bucket *frub,uint el_seq,uint el_id,uint
errorCode)
Description
The save_davars_ela subroutine formats the SRN if the errorCode is 0, and create a DAVars object containing the error log information. The format of the DAVars object is:
DAVars: dname = ResourceName vname = "ErrorLogSRN_or_ErrorCode" vtype = 0 vvalue = "ErrorlogIdentifier,ErrorlogSequenceNumber" ivalue = 0
An example of a DAVars object is:
DAVars: dname = "hdisk0" vname = "ErrorLog689-130" vtype = 0 vvalue = "1581762B,74" ivalue = 0
Parameters
Parameter | Description |
---|---|
*frub | Pointer to fru bucket |
el_seq | Error log sequence number |
el_id | Error log identifier |
errorCode | Error code (if 0, format the SRN) |
Return Value
The subroutine returns a value of 0 on success; a value of -1 on failure.