Jump to main content

# 1.2.13.4.3 SRV_LOG_REPORT_Buffer Function

## C

    void SRV_LOG_REPORT_Buffer(
        SRV_LOG_REPORT_LEVEL logLevel,
        const uint8_t *buffer,
        uint32_t bufferLength,
        const char *info, ...
    );

## Summary

Reports log information with a buffer.

## Description

This function reports log information with a buffer.

## Precondition

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

## Parameters

Param | Description
--- | ---
logLevel | Log priority level.
buffer | Buffer to be reported.
bufferLength | Length of the buffer.
info | Formatted description of the information.

## Returns

None.

## Example

    uint8_t macAddress[6] = {0xAA, 0xBB, 0xCC, 0xDD, 0x00, 0x01};

    SRV_LOG_REPORT_Buffer(SRV_LOG_REPORT_INFO, macAddress, 6, "MAC Address: ");

## Remarks

The function automatically adds a newline after printing the buffer.

Rev: G