From: Thomas Gleixner Date: Wed, 17 Dec 2008 21:34:13 +0000 (+0100) Subject: trace: fix task state printout X-Git-Tag: v2.6.29-rc1~586^2~2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d9101e92529e1ff6014f95a69afc82f37b9b13a;p=pandora-kernel.git trace: fix task state printout Impact: fix occasionally incorrect trace output The tracing code has interesting varieties of printing out task state. Unfortunalely only one of the instances is correct as it copies the code from sched.c:sched_show_task(). The others are plain wrong as they treatthe bitfield as an integer offset into the character array. Also the size check of the character array is wrong as it includes the trailing \0. Use a common state decoder inline which does the Right Thing. Signed-off-by: Thomas Gleixner Acked-by: Steven Rostedt Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed