diff options
author | Faisal Shah <faisal.shah@gmail.com> | 2018-04-09 22:46:45 -0500 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2018-05-08 15:21:49 -0700 |
commit | 227f729925ebc98d1d09ac22d3330446c6b90754 (patch) | |
tree | 9087940f3ab68dee8d022ce8440871ab01524a2d | |
parent | c1008329719b39e06722070e44b8c6ff1e6b47ce (diff) | |
download | riscv-openocd-227f729925ebc98d1d09ac22d3330446c6b90754.zip riscv-openocd-227f729925ebc98d1d09ac22d3330446c6b90754.tar.gz riscv-openocd-227f729925ebc98d1d09ac22d3330446c6b90754.tar.bz2 |
ChibiOS thread states: Update thread state to label mapping
Fixed style issue.
Removed #define with list of strings, and just put the
strings in the array initialization directly.
Removed empty space at the start of line.
Change-Id: I76580be203d7d69b8c5b5440f820156543e0d5cc
Signed-off-by: Faisal Shah <faisal.shah@gmail.com>
Reviewed-on: http://openocd.zylin.com/4488
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
-rw-r--r-- | src/rtos/ChibiOS.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rtos/ChibiOS.c b/src/rtos/ChibiOS.c index a46f7a4..312fc4d 100644 --- a/src/rtos/ChibiOS.c +++ b/src/rtos/ChibiOS.c @@ -69,10 +69,9 @@ struct ChibiOS_chdebug { /** * @brief ChibiOS thread states. */ -static const char * const ChibiOS_thread_states[] = { - "READY", "CURRENT", "SUSPENDED", "WTSEM", "WTMTX", "WTCOND", "SLEEPING", - "WTEXIT", "WTOREVT", "WTANDEVT", "SNDMSGQ", "SNDMSG", "WTMSG", "WTQUEUE", - "FINAL" +static const char * const ChibiOS_thread_states[] = { "READY", "CURRENT", +"WTSTART", "SUSPENDED", "QUEUED", "WTSEM", "WTMTX", "WTCOND", "SLEEPING", +"WTEXIT", "WTOREVT", "WTANDEVT", "SNDMSGQ", "SNDMSG", "WTMSG", "FINAL" }; #define CHIBIOS_NUM_STATES (sizeof(ChibiOS_thread_states)/sizeof(char *)) |