Updated on 2022-03-13 GMT+08:00

Log Printing Format 3

Syntax

#define HIAI_ENGINE_LOG(...) \

HIAI_ENGINE_LOG_IMPL(__FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__)

void HIAI_ENGINE_LOG_IMPL(const char* funcPointer, const char* filePath, int lineNumber,

const uint32_t errorCode, const char* format, ...);

Parameter Description

Parameter

Description

Value Range

errorCode

Error code

-

format

Log description

-

...

Variable parameter in format, which is added based on the log content

-

Calling Example

HIAI_ENGINE_LOG(HIAI_OK, "RUNNING OK");