split DUMPLOG

DUMPLOG requests the DUMPLOG feature as it does now
DUMPLOG_CORE requests the internal buffering only (used for CRASHREPORT)

This allows CRASHREPORT to access recent messages without performing
any file I/O.
This commit is contained in:
nhkeni
2024-02-20 21:37:06 -05:00
parent e76ab9558f
commit 3f5d1d3a36
14 changed files with 30 additions and 26 deletions

View File

@@ -17,7 +17,7 @@ static void execplinehandler(const char *);
#ifdef USER_SOUNDS
extern void maybe_play_sound(const char *);
#endif
#ifdef DUMPLOG
#ifdef DUMPLOG_CORE
/* keep the most recent DUMPLOG_MSG_COUNT messages */
void
@@ -205,7 +205,7 @@ vpline(const char *line, va_list the_args)
}
msgtyp = MSGTYP_NORMAL;
#ifdef DUMPLOG
#ifdef DUMPLOG_CORE
/* We hook here early to have options-agnostic output.
* Unfortunately, that means Norep() isn't honored (general issue) and
* that short lines aren't combined into one longer one (tty behavior).