Searched refs:MAX_LOG_LEN (Results 1 – 10 of 10) sorted by relevance
/base/hiviewdfx/hilog/frameworks/libhilog/ |
D | hilog_printf.cpp | 57 static char g_hiLogLastFatalMessage[MAX_LOG_LEN] = { 0 }; // MAX_lOG_LEN : 1024 205 char buf[MAX_LOG_LEN] = {0}; in HiLogPrintArgs() 223 traceBufLen = snprintf_s(logBuf, MAX_LOG_LEN, MAX_LOG_LEN - 1, "[%llx, %llx, %llx] ", in HiLogPrintArgs() 226 traceBufLen = snprintf_s(logBuf, MAX_LOG_LEN, MAX_LOG_LEN - 1, "[%llx] ", in HiLogPrintArgs() 253 vsnprintfp_s(logBuf, MAX_LOG_LEN - traceBufLen, MAX_LOG_LEN - traceBufLen - 1, priv, fmt, ap); in HiLogPrintArgs() 262 auto logLen = strnlen(buf, MAX_LOG_LEN - 1); in HiLogPrintArgs() 299 char dropLogBuf[MAX_LOG_LEN] = {0}; in HiLogPrintArgs() 300 if (snprintf_s(dropLogBuf, MAX_LOG_LEN, MAX_LOG_LEN - 1, in HiLogPrintArgs() 303 strnlen(dropLogBuf, MAX_LOG_LEN - 1) + 1); in HiLogPrintArgs()
|
/base/hiviewdfx/hilog/frameworks/libhilog/utils/ |
D | log_print.cpp | 156 char tmp[MAX_LOG_LEN]; in LogPrintWithFormat() 158 errno_t ret = memcpy_s(tmp, MAX_LOG_LEN - 1, pHead, len); in LogPrintWithFormat() 162 tmp[(MAX_LOG_LEN - 1) > len ? len : (MAX_LOG_LEN -1)] = '\0'; in LogPrintWithFormat()
|
/base/update/updater/services/log/ |
D | log.cpp | 145 char buf[MAX_LOG_LEN] = {0}; in UpdaterHiLogger() 148 int size = vsnprintfp_s(buf, MAX_LOG_LEN, MAX_LOG_LEN - 1, true, format, list); in UpdaterHiLogger()
|
/base/hiviewdfx/hilog/frameworks/libhilog/base/ |
D | hilog_base.cpp | 258 char buf[MAX_LOG_LEN] = {0}; in HiLogBasePrintArgs() 260 vsnprintfp_s(buf, MAX_LOG_LEN, MAX_LOG_LEN - 1, true, fmt, ap); in HiLogBasePrintArgs() 263 auto logLen = strnlen(buf, MAX_LOG_LEN - 1); in HiLogBasePrintArgs()
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | log_buffer.cpp | 64 std::vector<char> buf(MAX_LOG_LEN, 0); in InitBuffHead() 85 if (unlikely(msg.tag_len > MAX_TAG_LEN || msg.tag_len == 0 || elemSize > MAX_LOG_LEN || in Insert() 245 std::vector<char> buf(MAX_LOG_LEN, 0); in Query() 399 hilogMsg.len = hilogMsg.len > MAX_LOG_LEN ? MAX_LOG_LEN : hilogMsg.len; in GenerateHilogMsgInside()
|
D | kmsg_parser.cpp | 141 if (strncpy_s(CONTENT_PTR((&msg)), MAX_LOG_LEN, kmsgStr.c_str(), len) != 0) { in ParseKmsg()
|
/base/hiviewdfx/hilog/test/moduletest/common/ |
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/ |
D | log_data.h | 44 … if (unlikely(mtagLen > MAX_TAG_LEN || mtagLen == 0 || mfmtLen > MAX_LOG_LEN || mfmtLen <= 0)) { in init()
|
/base/hiviewdfx/hilog/frameworks/libhilog/include/ |
D | hilog_common.h | 31 #define MAX_LOG_LEN 1024 /* maximum length of a log, include '\0' */ macro
|
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/include/ |
D | log_ioctl.h | 47 static constexpr int DEFAULT_RECV_BUF_LEN = MAX_LOG_LEN * 2;
|