Commit 301827ac authored by Chris Caputo's avatar Chris Caputo Committed by Linus Torvalds

[PATCH] sched: correct output of show_state()

At present show_state prints a header the does not match the output of
show_task, as follows:

-
                                               sibling
  task             PC      pid father child younger older
init          S 00000000     0     1      0     2               (NOTLB)
-

This patch corrects the output of show_state so that the header is
aligned with the data, ala:

-
                         free                        sibling
  task             PC    stack   pid father child younger older
init          S 00000000     0     1      0     2               (NOTLB)
-
Signed-off-by: default avatarChris Caputo <ccaputo@alt.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bd9b0bac
......@@ -4822,12 +4822,12 @@ void show_state_filter(unsigned long state_filter)
#if (BITS_PER_LONG == 32)
printk("\n"
" sibling\n");
printk(" task PC pid father child younger older\n");
" free sibling\n");
printk(" task PC stack pid father child younger older\n");
#else
printk("\n"
" sibling\n");
printk(" task PC pid father child younger older\n");
" free sibling\n");
printk(" task PC stack pid father child younger older\n");
#endif
read_lock(&tasklist_lock);
do_each_thread(g, p) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment