Home
last modified time | relevance | path

Searched refs:tmpFmt (Results 1 – 2 of 2) sorted by relevance

/base/startup/init/services/log/
Dinit_log.c121 char tmpFmt[DEF_LOG_SIZE] = {0}; in InitLog() local
122 if (vsnprintf_s(tmpFmt, sizeof(tmpFmt), sizeof(tmpFmt) - 1, fmt, vargs) == -1) { in InitLog()
123 tmpFmt[sizeof(tmpFmt) - 2] = '\n'; // 2 add \n to tail in InitLog()
124 tmpFmt[sizeof(tmpFmt) - 1] = '\0'; in InitLog()
126 PrintLog((InitLogLevel)logLevel, domain, tag, tmpFmt); in InitLog()
/base/security/selinux/interfaces/policycoreutils/src/
Dselinux_klog.c63 char tmpFmt[MAX_LOG_SIZE]; in SelinuxKmsg() local
64 if (vsnprintf_s(tmpFmt, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, fmt, vargs) == -1) { in SelinuxKmsg()
75 LOG_LEVEL_STR[logLevel], tmpFmt); in SelinuxKmsg()
77 res = snprintf_s(logInfo, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, "%s", tmpFmt); in SelinuxKmsg()