mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-23 15:30:36 +01:00
tools/debug-events: print bugs in bold red
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1013>
This commit is contained in:
parent
3f3071cb88
commit
49bbef6468
1 changed files with 6 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue