Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/kernel/sched.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN kernel/sched.c~sched-print-preempt-count kernel/sched.c
--- 25/kernel/sched.c~sched-print-preempt-count	2004-09-21 01:53:28.454597608 -0700
+++ 25-akpm/kernel/sched.c	2004-09-21 01:53:28.460596696 -0700
@@ -2491,7 +2491,9 @@ asmlinkage void __sched schedule(void)
 	 */
 	if (likely(!(current->state & (TASK_DEAD | TASK_ZOMBIE)))) {
 		if (unlikely(in_atomic())) {
-			printk(KERN_ERR "bad: scheduling while atomic!\n");
+			printk(KERN_ERR "scheduling while atomic: "
+				"%s/0x%08x/%d\n",
+				current->comm, preempt_count(), current->pid);
 			dump_stack();
 		}
 	}
_