From e6cc508d8df8c76c4fc6bc659df629a474ca9d0d Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Sun, 11 Sep 2022 10:27:05 +0200 Subject: [PATCH] tests/thread_priority_inversion: improve output for debugging --- tests/thread_priority_inversion/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/thread_priority_inversion/main.c b/tests/thread_priority_inversion/main.c index 09c8a0f869..1eb809a3fb 100644 --- a/tests/thread_priority_inversion/main.c +++ b/tests/thread_priority_inversion/main.c @@ -63,7 +63,11 @@ static void busy_delay(void) static void record_thread_started(const char *priority) { print_str(priority); - print_str(" priority thread has started\n"); + print_str(" priority thread (pid = "); + print_u32_dec(thread_getpid()); + print_str(", prio = "); + print_u32_dec(thread_get_active()->priority); + print_str(") has started\n"); } static void record_thread_working(const char *priority)