[PATCH 3/4] KASan: only print to stderr
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Sep 11 05:56:18 PDT 2023
Part of KASan output, like the stack trace, is already printed to
stderr, while some others are printed to stdout. Let's print everything
to stderr as not to complicate debugging when stdout and stderr go to
different consoles.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
lib/kasan/report.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/kasan/report.c b/lib/kasan/report.c
index a67ba8c108f5..3d8f0c3b5162 100644
--- a/lib/kasan/report.c
+++ b/lib/kasan/report.c
@@ -138,7 +138,7 @@ static void print_shadow_for_address(const void *addr)
shadow_buf, SHADOW_BYTES_PER_ROW, 0);
if (row_is_guilty(shadow_row, shadow))
- printf("%*c\n",
+ eprintf("%*c\n",
shadow_pointer_offset(shadow_row, shadow),
'^');
--
2.39.2
More information about the barebox
mailing list