mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
sys/ps: make use of thread_get_status()
This commit is contained in:
parent
017e9e9d4d
commit
848a5a4e7a
@ -87,7 +87,7 @@ void ps(void)
|
||||
thread_t *p = thread_get(i);
|
||||
|
||||
if (p != NULL) {
|
||||
thread_status_t state = p->status; /* copy state */
|
||||
thread_status_t state = thread_get_status(p); /* copy state */
|
||||
const char *sname = thread_state_to_string(state); /* get state name */
|
||||
const char *queued = &queued_name[(int)(state >= STATUS_ON_RUNQUEUE)]; /* get queued flag */
|
||||
#ifdef DEVELHELP
|
||||
|
Loading…
Reference in New Issue
Block a user