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,
uint32_t 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
| Param | Description |
|---|---|
| logLevel | Log priority level. |
| code | Code of the reported error/warning. |
| info | Formatted 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.
The following error code ranges are already reserved:
- SRV_USI: 100 - 199
- SRV_QUEUE: 200 - 299
- PRIME PAL: 300 - 399
- PRIME Stack: 400 - 9999
