22 #include "rdk_moca_hal.h"
24 __attribute__((visibility(
"hidden")))
RMH_APIList hRMHGeneric_APIList;
25 __attribute__((visibility("hidden")))
RMH_APIList hRMHGeneric_SoCUnimplementedAPIList;
26 __attribute__((visibility("hidden")))
RMH_APITagList hRMHGeneric_APITags;
28 void RMH_Print(const
RMH_Handle handle, const RMH_LogLevel level, const
char *filename, const uint32_t lineNumber, const
char *format, ...) {
30 va_start(args, format);
31 if (handle && handle->localLogToFile) {
32 vfprintf(handle->localLogToFile, format, args);
34 else if (handle && handle->printBuf && handle->eventCB && ((handle->eventNotifyBitMask & RMH_EVENT_API_PRINT) == RMH_EVENT_API_PRINT)) {
36 vsnprintf(handle->printBuf, RMH_MAX_PRINT_LINE_SIZE, format, args);
37 eventData.RMH_EVENT_API_PRINT.logLevel=level;
38 eventData.RMH_EVENT_API_PRINT.logMsg=(
const char *)handle->printBuf;
39 handle->eventCB(RMH_EVENT_API_PRINT, &eventData, handle->eventCBUserContext);
42 vprintf(format, args);