System Management Interface Based on HPI-B (Centellis 4620) User’s Guide (6806800D85A)
Using HPI-B HPI Logging Support
38
Table 4-17 Log Control State
SaHpiCtrlStateT Value
Type SAHPI_CTRL_TYPE_OEM
StateUnion.Oem.MId MOTHPI_MANUFACTURER_ID_MOTOROLA
StateUnion.Oem.BodyLength 40 + length of log file name
StateUnion.Oem.Body MOTHPI_LOG_ERROR_FACILITIES_OFFSET - facilities for that error
logging is enabled
MOTHPI_LOG_WARNING_FACILITIES_OFFSET - facilities for that
warning logging is enabled
MOTHPI_LOG_INFO_FACILITIES_OFFSET - facilities for that info
logging is enabled
MOTHPI_LOG_DEBUG_FACILITIES_OFFSET - facilities for that
debug logging is enabled
The logging facilities are defined in the file log_utils.h, enum
oh_log_fac.
MOTHPI_LOG_CURRENT_IDX_OFFSET - index of currently used log
file
[MOTHPI_LOG_OFFSET_PROPERTIES] - output locationdLogStdout
- stdoutdLogStderr - stderrdLogFile - log file
[MOTHPI_LOG_NUM_FILES_OFFSET] - number of logfile created
[MOTHPI_LOG_MAX_FILE_SIZE_OFFSET] - maximum logfile size
before creating a new one. This is a 32 bit field in MSB byte order. Use
GetUInt32 in byte_utils.h to get host byte order.
[MOTHPI_LOG_FILENAME_OFFSET] - log file name.