if( (platformDebug == false) && (appDebug == 0) )
{
snprintf(logBody, LOG_LEN_MAX, "%s(%d) > App assertion passed due to debug mode off!", pFunction, lineNumber);
- ALOG(LOG_ERROR, logTag, logBody);
+ ALOG(LOG_ERROR, logTag, "%s", logBody);
return;
}
snprintf(logBody, LOG_LEN_MAX, "%s(%d) > AppAssert!", pFunction, lineNumber);
- ALOG(LOG_ERROR, logTag, logBody);
+ ALOG(LOG_ERROR, logTag, "%s", logBody);
assert(false);
}
snprintf(logBody, LOG_LEN_MAX, "%s(%d) > SysAssert!", pFunction, lineNumber);
- ALOG(LOG_ERROR, LOG_TAG_ASSERT, logBody);
+ ALOG(LOG_ERROR, LOG_TAG_ASSERT, "%s", logBody);
assert(false);
}
char logTag[LOG_MODULE_NAME_LEN_MAX];
snprintf(logTag, LOG_MODULE_NAME_LEN_MAX, "%s", __GetModuleName(static_cast<LogID>(nid)));
- ALOG(LOG_ERROR, logTag, logBody);
+ ALOG(LOG_ERROR, logTag, "%s", logBody);
}
void