1.2.13.4.1 SRV_LOG_REPORT_Message_With_Code Function

C

void SRV_LOG_REPORT_Message_With_Code(
    SRV_LOG_REPORT_LEVEL logLevel, 
    SRV_LOG_REPORT_CODE code, 
    const char *info, ...
);

Summary

Reports an error/warning code with related information.

Description

This function reports an error/warning code with related information.

Precondition

The SYS_DEBUG initialization routines should be called before calling this routine (in "SYS_Initialize").

Parameters

ParamDescription
logLevelLog priority level
codeCode of the reported error/warning
infoFormatted description of the reported error/warning

Returns

None.

Example

SRV_LOG_REPORT_Message_With_Code(SRV_LOG_REPORT_WARNING, 100, "Wrong input\r\n");

Remarks

The function does not add a newline after printing the information.