Home
last modified time | relevance | path

Searched refs:MAX_LOG_SIZE (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/
H A Dselinux_klog.c21 #define MAX_LOG_SIZE 1024 macro
63 char tmpFmt[MAX_LOG_SIZE]; in SelinuxKmsg()
64 if (vsnprintf_s(tmpFmt, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, fmt, vargs) == -1) { in SelinuxKmsg()
71 char logInfo[MAX_LOG_SIZE]; in SelinuxKmsg()
74 …res = snprintf_s(logInfo, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, "[pid=%d][%s][%s] %s", getpid(), "SELINU… in SelinuxKmsg()
77 res = snprintf_s(logInfo, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, "%s", tmpFmt); in SelinuxKmsg()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/src/
H A Dnativetoken_klog.c21 #define MAX_LOG_SIZE 1024 macro
53 char tmpFmt[MAX_LOG_SIZE]; in NativeTokenKmsg()
54 if (vsnprintf_s(tmpFmt, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, fmt, vargs) == -1) { in NativeTokenKmsg()
61 char logInfo[MAX_LOG_SIZE]; in NativeTokenKmsg()
62 int res = snprintf_s(logInfo, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, "[pid=%d][%s][%s] %s", in NativeTokenKmsg()
/ohos5.0/foundation/multimodalinput/input/util/common/src/
H A Dklog.cpp46 constexpr int32_t MAX_LOG_SIZE = 1024; variable
72 char tmpFmt[MAX_LOG_SIZE]; in kMsgLog()
73 if (vsnprintf_s(tmpFmt, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, fmt, vargs) == -1) { in kMsgLog()
80 char logInfo[MAX_LOG_SIZE]; in kMsgLog()
81 if (snprintf_s(logInfo, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, in kMsgLog()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/
H A Dnapi_async_work.h30 #define MAX_LOG_SIZE 1024 macro
37 char buffer[MAX_LOG_SIZE] = {0}; \
38 int res = snprintf_s(buffer, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, fmt, ##__VA_ARGS__); \
/ohos5.0/base/update/updater/services/include/updater/
H A Dupdater_const.h89 constexpr long MAX_LOG_SIZE = 2 * 1024 * 1024; variable
/ohos5.0/base/update/updater/utils/
H A Dutils.cpp586 if (Utils::GetFileSize(sLog) > MAX_LOG_SIZE) { in CopyUpdaterLogs()
602 if (GetFileSize(dLog) >= MAX_LOG_SIZE) { in CopyUpdaterLogs()