[PATCH] i386 traps: merge printk calls
authorJean Delvare <khali@linux-fr.org>
Thu, 23 Mar 2006 10:59:38 +0000 (02:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 23 Mar 2006 15:38:04 +0000 (07:38 -0800)
Merge a few printk calls in i386 traps.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/traps.c

index ee61988f61b5c33f81c9f4d1be68025d438312bf..f20797b8da1dbca5cadace6743f43aeca2360705 100644 (file)
@@ -188,8 +188,7 @@ static void show_trace_log_lvl(struct task_struct *task,
                stack = (unsigned long*)context->previous_esp;
                if (!stack)
                        break;
-               printk(log_lvl);
-               printk(" =======================\n");
+               printk("%s =======================\n", log_lvl);
        }
 }
 
@@ -218,14 +217,12 @@ static void show_stack_log_lvl(struct task_struct *task, unsigned long *esp,
                        break;
                if (i && ((i % 8) == 0)) {
                        printk("\n");
-                       printk(log_lvl);
-                       printk("       ");
+                       printk("%s       ", log_lvl);
                }
                printk("%08lx ", *stack++);
        }
        printk("\n");
-       printk(log_lvl);
-       printk("Call Trace:\n");
+       printk("%sCall Trace:\n", log_lvl);
        show_trace_log_lvl(task, esp, log_lvl);
 }