Skip to content

Commit

Permalink
[PATCH] sched: correct output of show_state()
Browse files Browse the repository at this point in the history
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: Chris Caputo <ccaputo@alt.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Chris Caputo authored and Linus Torvalds committed Dec 7, 2006
1 parent bd9b0ba commit 301827a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 301827a

Please sign in to comment.