Skip to content

Commit 0651840

Browse files
author
Patrik Bachan
committed
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
1 parent f06eb4e commit 0651840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zephyr_plugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ EXPORT int RTOS_GetThreadDisplay(char *pDisplay, uint32_t threadid) {
564564
api->pfLogOutf("%s(*, %d)\n", __func__, threadid);
565565
#endif
566566
if (t) {
567-
return sprintf(pDisplay, "%.32s %s PRIO %hhu", t->name, state_to_str(t), t->prio);
567+
return sprintf(pDisplay, "%.32s %s PRIO %hhd", t->name, state_to_str(t), t->prio);
568568
}
569569
return sprintf(pDisplay, "Unknown thread");
570570
}

0 commit comments

Comments
 (0)