From 49bbef6468227ec20625578061df8a760ccce349 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 1 Nov 2024 16:00:12 +1000 Subject: [PATCH] tools/debug-events: print bugs in bold red Part-of: --- tools/shared.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/shared.c b/tools/shared.c index 06f027c1..9df277d6 100644 --- a/tools/shared.c +++ b/tools/shared.c @@ -70,7 +70,12 @@ log_handler(struct libinput *li, if (is_tty) { if (priority >= LIBINPUT_LOG_PRIORITY_ERROR) { - printf(ANSI_RED); + if (strstr(format, "client bug: ") || + strstr(format, "libinput bug: ") || + strstr(format, "kernel bug: ")) + printf(ANSI_BRIGHT_RED); + else + printf(ANSI_RED); } else if (priority >= LIBINPUT_LOG_PRIORITY_INFO) { printf(ANSI_HIGHLIGHT); } else if (priority == LIBINPUT_LOG_PRIORITY_DEBUG) {