From 848a5a4e7a9f132b3ad3e7ece08d8c744cd852dc Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 25 Nov 2020 14:39:47 +0100 Subject: [PATCH] sys/ps: make use of thread_get_status() --- sys/ps/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ps/ps.c b/sys/ps/ps.c index 8208555c85..d8baa6994e 100644 --- a/sys/ps/ps.c +++ b/sys/ps/ps.c @@ -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