dump_stack: unify debug information printed by show_regs()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / frv / kernel / traps.c
index 5cfd1420b09141dd0e270af0197dbf8e63836171..4bff48c19d29733e90d75cbad1d631f3cadc3aaf 100644 (file)
@@ -466,17 +466,6 @@ asmlinkage void compound_exception(unsigned long esfr1,
        BUG();
 } /* end compound_exception() */
 
-/*****************************************************************************/
-/*
- * The architecture-independent backtrace generator
- */
-void dump_stack(void)
-{
-       show_stack(NULL, NULL);
-}
-
-EXPORT_SYMBOL(dump_stack);
-
 void show_stack(struct task_struct *task, unsigned long *sp)
 {
 }
@@ -508,6 +497,7 @@ void show_regs(struct pt_regs *regs)
        int loop;
 
        printk("\n");
+       show_regs_print_info(KERN_DEFAULT);
 
        printk("Frame: @%08lx [%s]\n",
               (unsigned long) regs,
@@ -522,8 +512,6 @@ void show_regs(struct pt_regs *regs)
                else
                        printk(" | ");
        }
-
-       printk("Process %s (pid: %d)\n", current->comm, current->pid);
 }
 
 void die_if_kernel(const char *str, ...)