From c9a449717b30db299222210eccb3659568726907 Mon Sep 17 00:00:00 2001 From: liuyifei Date: Tue, 27 Aug 2024 02:04:55 +0000 Subject: [PATCH] =?UTF-8?q?hilog=20buf=20=E6=9C=80=E5=A4=A7=E5=80=BC?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C512M=20->16M?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuyifei --- frameworks/libhilog/include/hilog_common.h | 2 +- services/hilogtool/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/libhilog/include/hilog_common.h b/frameworks/libhilog/include/hilog_common.h index 7993dc6..b24abd5 100644 --- a/frameworks/libhilog/include/hilog_common.h +++ b/frameworks/libhilog/include/hilog_common.h @@ -33,7 +33,7 @@ #define RET_FAIL (-1) #define MAX_JOBS (10) constexpr size_t MIN_BUFFER_SIZE = (64 * 1024); -constexpr size_t MAX_BUFFER_SIZE = (512 * 1024 * 1024); +constexpr size_t MAX_BUFFER_SIZE = (16 * 1024 * 1024); constexpr uint32_t MAX_PERSISTER_BUFFER_SIZE = 64 * 1024; constexpr uint32_t MIN_LOG_FILE_SIZE = MAX_PERSISTER_BUFFER_SIZE; constexpr uint32_t MAX_LOG_FILE_SIZE = (512 * 1024 * 1024); diff --git a/services/hilogtool/main.cpp b/services/hilogtool/main.cpp index 9a941c7..ddc77cc 100644 --- a/services/hilogtool/main.cpp +++ b/services/hilogtool/main.cpp @@ -121,7 +121,7 @@ static void BufferHelper() << "-G , --buffer-size=" << endl << " Set hilogd buffer size, could be number or number with unit." << endl << " Unit could be: B/K/M/G which represents Byte/Kilobyte/Megabyte/Gigabyte." << endl - << " range: [" << Size2Str(MIN_BUFFER_SIZE) << "," << Size2Str(MIN_BUFFER_SIZE) << "]." << endl + << " range: [" << Size2Str(MIN_BUFFER_SIZE) << "," << Size2Str(MAX_BUFFER_SIZE) << "]." << endl << " Advanced option:" << endl << " -t , --type=" << endl << " Set specific type/types log buffer size with format: type1,type2,type3" << endl -- Gitee