提交 ddadfa8d 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

[S390] stack dump: fix indentation in output

The first line of a stack dump has a wrong (no) indentation.
Just fix this after more than 10 years.
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 4857d4bb
...@@ -145,8 +145,8 @@ void show_stack(struct task_struct *task, unsigned long *sp) ...@@ -145,8 +145,8 @@ void show_stack(struct task_struct *task, unsigned long *sp)
for (i = 0; i < kstack_depth_to_print; i++) { for (i = 0; i < kstack_depth_to_print; i++) {
if (((addr_t) stack & (THREAD_SIZE-1)) == 0) if (((addr_t) stack & (THREAD_SIZE-1)) == 0)
break; break;
if (i && ((i * sizeof (long) % 32) == 0)) if ((i * sizeof(long) % 32) == 0)
printk("\n "); printk("%s ", i == 0 ? "" : "\n");
printk(LONG, *stack++); printk(LONG, *stack++);
} }
printk("\n"); printk("\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册