[S390] stack dump: fix indentation in output
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sun, 11 Mar 2012 15:59:35 +0000 (11:59 -0400)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 11 Mar 2012 15:59:29 +0000 (11:59 -0400)
The first line of a stack dump has a wrong (no) indentation.
Just fix this after more than 10 years.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/traps.c

index 8894ac435d8de1f749411d403c7c4834a2dc84fd..cd6ebe12c481065c19822b42dd647f70a9d021d9 100644 (file)
@@ -145,8 +145,8 @@ void show_stack(struct task_struct *task, unsigned long *sp)
        for (i = 0; i < kstack_depth_to_print; i++) {
                if (((addr_t) stack & (THREAD_SIZE-1)) == 0)
                        break;
-               if (i && ((i * sizeof (long) % 32) == 0))
-                       printk("\n       ");
+               if ((i * sizeof(long) % 32) == 0)
+                       printk("%s       ", i == 0 ? "" : "\n");
                printk(LONG, *stack++);
        }
        printk("\n");