kernel: thread: fix string for _THREAD_PRESTART

_THREAD_PRESTART means the thread was not started yet and is being
setup, for example this is the case when starting a thread with a
timeout. We do not have a 'restart' thread state.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-01-28 10:25:32 -05:00 committed by Andrew Boie
commit 7605ac2c4c

View file

@ -280,7 +280,7 @@ const char *k_thread_state_str(k_tid_t thread_id)
return "pending"; return "pending";
break; break;
case _THREAD_PRESTART: case _THREAD_PRESTART:
return "restart"; return "prestart";
break; break;
case _THREAD_DEAD: case _THREAD_DEAD:
return "dead"; return "dead";