1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

sys/ps/ps: use same order as tcb for lookup table

This commit is contained in:
Francisco Molina 2020-07-29 17:13:11 +02:00
parent d167cb3af8
commit 1a66ce3d23
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -34,11 +34,9 @@
/* list of states copied from tcb.h */
static const char *state_names[STATUS_NUMOF] = {
[STATUS_RUNNING] = "running",
[STATUS_PENDING] = "pending",
[STATUS_STOPPED] = "stopped",
[STATUS_SLEEPING] = "sleeping",
[STATUS_ZOMBIE] = "zombie",
[STATUS_SLEEPING] = "sleeping",
[STATUS_MUTEX_BLOCKED] = "bl mutex",
[STATUS_RECEIVE_BLOCKED] = "bl rx",
[STATUS_SEND_BLOCKED] = "bl send",
@ -47,6 +45,8 @@ static const char *state_names[STATUS_NUMOF] = {
[STATUS_FLAG_BLOCKED_ALL] = "bl allfl",
[STATUS_MBOX_BLOCKED] = "bl mbox",
[STATUS_COND_BLOCKED] = "bl cond",
[STATUS_RUNNING] = "running",
[STATUS_PENDING] = "pending",
};
#define STATE_NAME_UNKNOWN "unknown"