summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-06-09 15:25:57 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-06-11 10:34:25 +0200
commit5fdfd14beb86088faa058bcd6c2b27bb41a1a510 (patch)
tree9108666c1ba24bb953be6499f9b32ff065d44890
parent1d1a672bcac7b36ff35e48fb9633d56c8e733343 (diff)
ddb: use db_thread_stat to format the flags
* ddb/db_print.c (db_print_thread): Use db_thread_stat to format the flags.
-rw-r--r--ddb/db_print.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ddb/db_print.c b/ddb/db_print.c
index 1cbff64..e711ab6 100644
--- a/ddb/db_print.c
+++ b/ddb/db_print.c
@@ -194,12 +194,8 @@ db_print_thread(
2*sizeof(vm_offset_t), thread);
else
db_printf("(%0*X) ", 2*sizeof(vm_offset_t), thread);
- db_printf("%c%c%c%c%c",
- (thread->state & TH_RUN) ? 'R' : ' ',
- (thread->state & TH_WAIT) ? 'W' : ' ',
- (thread->state & TH_SUSP) ? 'S' : ' ',
- (thread->state & TH_UNINT)? 'N' : ' ',
- db_thread_fp_used(thread) ? 'F' : ' ');
+ char status[8];
+ db_printf("%s", db_thread_stat(thread, status));
if (thread->state & TH_SWAPPED) {
if (thread->swap_func) {
db_printf("(");