mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibSanitizer: Log UBSAN errors in red text to the debug console
This makes them harder to miss for spammy apps when UBSAN is not deadly. Don't commit to making the warnln red at the momment, because that would probably be a nuisance if stderr is not a tty.
This commit is contained in:
parent
db33cdbc2f
commit
7e04160b0b
Notes:
sideshowbarker
2024-07-17 22:45:53 +09:00
Author: https://github.com/ADKaster
Commit: 7e04160b0b
Pull-request: https://github.com/SerenityOS/serenity/pull/11031
Reviewed-by: https://github.com/BenWiederhake
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/mjz19910
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ bool AK::UBSanitizer::g_ubsan_is_deadly { false };
|
|||
|
||||
#define WARNLN_AND_DBGLN(fmt, ...) \
|
||||
warnln(fmt, ##__VA_ARGS__); \
|
||||
dbgln(fmt, ##__VA_ARGS__);
|
||||
dbgln("\x1B[31m" fmt "\x1B[0m", ##__VA_ARGS__);
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue