diff --git a/frameworks/libhilog/include/hilog_common.h b/frameworks/libhilog/include/hilog_common.h index 7993dc6a68c2f662b5725e3b101cc254b4509be2..b24abd5a15a70d2c1fdba960f691b3eaf2a8ed00 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 9a941c70c1196ceddeb4de6dc488c7439c05ede1..ddc77ccfe7e76eb9a0c0cab50b07a96bbae051be 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