From 06518403bb0dfc5668b2ff303e0b2b00a5cd71d6 Mon Sep 17 00:00:00 2001 From: Patrik Bachan Date: Sat, 11 Oct 2025 13:02:28 +0200 Subject: [PATCH] Fix thread priority format It was presented as unsigned 8 bit integer, but Zephyr uses signed version, where negative values represent cooperative threads. closes #7 --- zephyr_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr_plugin.c b/zephyr_plugin.c index 0a65b1c..d21b6b6 100644 --- a/zephyr_plugin.c +++ b/zephyr_plugin.c @@ -564,7 +564,7 @@ EXPORT int RTOS_GetThreadDisplay(char *pDisplay, uint32_t threadid) { api->pfLogOutf("%s(*, %d)\n", __func__, threadid); #endif if (t) { - return sprintf(pDisplay, "%.32s %s PRIO %hhu", t->name, state_to_str(t), t->prio); + return sprintf(pDisplay, "%.32s %s PRIO %hhd", t->name, state_to_str(t), t->prio); } return sprintf(pDisplay, "Unknown thread"); }