Searched refs:MAX_LOG_LEN (Results 1 - 10 of 10) sorted by relevance
/base/hiviewdfx/hilog/frameworks/libhilog/ |
H A D | hilog_printf.cpp | 61 static char g_hiLogLastFatalMessage[MAX_LOG_LEN] = { 0 }; // MAX_lOG_LEN : 1024 203 char logInfo[MAX_LOG_LEN] = {0}; in LogToKmsg() 225 char tmpFmt[MAX_LOG_LEN] = {0}; in HiLogPrintArgs() 243 char buf[MAX_LOG_LEN] = {0}; in HiLogPrintArgs() 261 traceBufLen = snprintf_s(logBuf, MAX_LOG_LEN, MAX_LOG_LEN - 1, "[%llx, %llx, %llx] ", in HiLogPrintArgs() 264 traceBufLen = snprintf_s(logBuf, MAX_LOG_LEN, MAX_LOG_LEN - 1, "[%llx] ", in HiLogPrintArgs() 291 vsnprintfp_s(logBuf, MAX_LOG_LEN - traceBufLen, MAX_LOG_LEN in HiLogPrintArgs() [all...] |
/base/hiviewdfx/hilog/frameworks/libhilog/base/ |
H A D | hilog_base.c | 82 char buf[MAX_LOG_LEN] = {0};
in HiLogBasePrintArgs() 84 vsnprintfp_s(buf, MAX_LOG_LEN, MAX_LOG_LEN - 1, true, fmt, ap);
in HiLogBasePrintArgs() 87 size_t logLen = strnlen(buf, MAX_LOG_LEN - 1);
in HiLogBasePrintArgs()
|
/base/hiviewdfx/hilog/frameworks/libhilog/utils/ |
H A D | log_print.cpp | 172 char tmp[MAX_LOG_LEN];
in LogPrintWithFormat() 174 errno_t ret = memcpy_s(tmp, MAX_LOG_LEN - 1, pHead, len);
in LogPrintWithFormat() 178 tmp[(MAX_LOG_LEN - 1) > len ? len : (MAX_LOG_LEN -1)] = '\0';
in LogPrintWithFormat()
|
/base/hiviewdfx/hilog/frameworks/libhilog/include/ |
H A D | hilog_base.h | 25 #define MAX_LOG_LEN 4096 /* maximum length of a log, include '\0' */
macro
|
/base/update/updater/services/log/ |
H A D | log.cpp | 148 char buf[MAX_LOG_LEN] = {0}; in UpdaterHiLogger() 151 int size = vsnprintfp_s(buf, MAX_LOG_LEN, MAX_LOG_LEN - 1, true, format, list); in UpdaterHiLogger()
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_buffer.cpp | 70 std::vector<char> buf(MAX_LOG_LEN, 0); in InitBuffHead() 91 if (unlikely(msg.tagLen > MAX_TAG_LEN || msg.tagLen == 0 || elemSize > MAX_LOG_LEN || in Insert() 252 std::vector<char> buf(MAX_LOG_LEN, 0); in Query() 419 hilogMsg.len = hilogMsg.len > MAX_LOG_LEN ? MAX_LOG_LEN : hilogMsg.len; in GenerateHilogMsgInside()
|
H A D | kmsg_parser.cpp | 103 if (strncpy_s(CONTENT_PTR((&msg)), MAX_LOG_LEN, kmsgStr.c_str(), len) != 0) { in ParseKmsg()
|
/base/hiviewdfx/hilog/test/moduletest/common/ |
H A D | hilog_base_ndk_test.cpp | 130 if (logMsg.length() > MAX_LOG_LEN-1) { in HiLogWriteTest() 131 logMsg = logMsg.substr(0, MAX_LOG_LEN-1); in HiLogWriteTest()
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
H A D | log_data.h | 45 if (unlikely(mtagLen > MAX_TAG_LEN || mtagLen == 0 || mfmtLen > MAX_LOG_LEN || mfmtLen <= 0)) { in Init()
|
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/include/ |
H A D | log_ioctl.h | 47 static constexpr int DEFAULT_RECV_BUF_LEN = MAX_LOG_LEN * 2;
|
Completed in 5 milliseconds