Home
last modified time | relevance | path

Searched refs:MAX_LOG_LEN (Results 1 – 10 of 10) sorted by relevance

/base/hiviewdfx/hilog/frameworks/libhilog/
Dhilog_printf.cpp57 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/
Dlog_print.cpp156 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/
Dlog.cpp145 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/
Dhilog_base.cpp258 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/
Dlog_buffer.cpp64 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()
Dkmsg_parser.cpp141 if (strncpy_s(CONTENT_PTR((&msg)), MAX_LOG_LEN, kmsgStr.c_str(), len) != 0) { in ParseKmsg()
/base/hiviewdfx/hilog/test/moduletest/common/
Dhilog_base_ndk_test.cpp130 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/
Dlog_data.h44 … if (unlikely(mtagLen > MAX_TAG_LEN || mtagLen == 0 || mfmtLen > MAX_LOG_LEN || mfmtLen <= 0)) { in init()
/base/hiviewdfx/hilog/frameworks/libhilog/include/
Dhilog_common.h31 #define MAX_LOG_LEN 1024 /* maximum length of a log, include '\0' */ macro
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/include/
Dlog_ioctl.h47 static constexpr int DEFAULT_RECV_BUF_LEN = MAX_LOG_LEN * 2;