提交 cc04ee9c 编写于 作者: J Jean Delvare 提交者: Linus Torvalds

[PATCH] i386 traps: merge printk calls

Merge a few printk calls in i386 traps.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 7c63ee5c
...@@ -188,8 +188,7 @@ static void show_trace_log_lvl(struct task_struct *task, ...@@ -188,8 +188,7 @@ static void show_trace_log_lvl(struct task_struct *task,
stack = (unsigned long*)context->previous_esp; stack = (unsigned long*)context->previous_esp;
if (!stack) if (!stack)
break; break;
printk(log_lvl); printk("%s =======================\n", log_lvl);
printk(" =======================\n");
} }
} }
...@@ -218,14 +217,12 @@ static void show_stack_log_lvl(struct task_struct *task, unsigned long *esp, ...@@ -218,14 +217,12 @@ static void show_stack_log_lvl(struct task_struct *task, unsigned long *esp,
break; break;
if (i && ((i % 8) == 0)) { if (i && ((i % 8) == 0)) {
printk("\n"); printk("\n");
printk(log_lvl); printk("%s ", log_lvl);
printk(" ");
} }
printk("%08lx ", *stack++); printk("%08lx ", *stack++);
} }
printk("\n"); printk("\n");
printk(log_lvl); printk("%sCall Trace:\n", log_lvl);
printk("Call Trace:\n");
show_trace_log_lvl(task, esp, log_lvl); show_trace_log_lvl(task, esp, log_lvl);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册