diff --git a/task.c b/task.c index fde86eb..9e95b83 100755 --- a/task.c +++ b/task.c @@ -5770,10 +5770,12 @@ print_task_header(FILE *out, struct task_context *tc, int newline) { char buf[BUFSIZE]; char buf1[BUFSIZE]; + char buf2[BUFSIZE]; - fprintf(out, "%sPID: %-5ld TASK: %s CPU: %-2s COMMAND: \"%s\"\n", + fprintf(out, "%sPID: %-5ld TASK: %s ST:%s CPU: %-2s COMMAND: \"%s\"\n", newline ? "\n" : "", tc->pid, mkstring(buf1, VADDR_PRLEN, LJUST|LONG_HEX, MKSTR(tc->task)), + task_state_string(tc->task, buf2, !VERBOSE), task_cpu(tc->processor, buf, !VERBOSE), tc->comm); }