Write a diagnostic event to the Diagnostic Event Log.
#include <diag/diag_log.h>
int dlog_write(dlEntry *entry)
The dlog_write subroutine writes a diagnostic event
to the Diagnostic Event Log.
| Parameter |
Description |
| entry |
Pointer to a structure of type dlEntry, which is defined
as follows:
typedef struct _logEntry {
char type; /* Log Type */
char identifier[5]; /* Diagnostic log identifier */
unsigned int el_identifier; /* Error log identifier */
int timestamp;
unsigned int seqNum; /* order in which event is logged */
unsigned int el_seqNum; /* Error log sequence number */
unsigned int session; /* Diag Session's PID */
unsigned int testMode; /* Diagnostics test mode - hex value*/
resource_t *res_p; /* Resource information */
int resSize; /* Size of resource info */
void *errorInfo; /* Error information */
int errorSize; /* Size of error info */
} dlEntry;
typedef struct resource {
char name[NAME_SIZE];
int locSize;
char *location;
short set;
short msg;
char catName[NAME_SIZE];
}resource_t;
|
The dlog_write subroutine returns one of the following
values:
| Return Code |
Description |
| 0 |
Successful |
| -1 |
Unsuccessful |
| ERROR_FS |
Indicates the /var filesystem is full |