From 64b8fdd9a26cb9749e154c721f0688932b5e0094 Mon Sep 17 00:00:00 2001 From: Nick Ewins Date: Mon, 19 Apr 2021 15:59:16 +0000 Subject: 13178 ::msgbuf could see more than 8KB of logs Reviewed by: Andy Fiddaman Reviewed by: Toomas Soome Approved by: Dan McDonald --- usr/src/uts/common/os/logsubr.c | 2 +- usr/src/uts/common/sys/log.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/usr/src/uts/common/os/logsubr.c b/usr/src/uts/common/os/logsubr.c index 2874b9049d..f597c4a922 100644 --- a/usr/src/uts/common/os/logsubr.c +++ b/usr/src/uts/common/os/logsubr.c @@ -216,7 +216,7 @@ log_init(void) log_intrq = log_makeq(0, LOG_HIWAT, (void *)ipltospl(SPL8)); /* - * Create a queue to hold the most recent 8K of console messages. + * Create a queue to hold the most recent 64K of console messages. * Useful for debugging. Required by the "$ #include #include @@ -55,7 +53,7 @@ extern "C" { #define LOG_HIWAT 1048576 /* threshold for tossing messages */ #define LOG_MAGIC 0xf00d4109U /* "food for log" - unsent msg magic */ -#define LOG_RECENTSIZE 8192 /* queue of most recent messages */ +#define LOG_RECENTSIZE 65536 /* queue of most recent messages */ #define LOG_MINFREE 4096 /* message cache low water mark */ #define LOG_MAXFREE 8192 /* message cache high water mark */ -- cgit v1.2.3