]> git.hungrycats.org Git - linux/commitdiff
[PATCH] x86 stack dump fixes
authorAndrew Morton <akpm@osdl.org>
Sun, 27 Jun 2004 16:34:36 +0000 (09:34 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 27 Jun 2004 16:34:36 +0000 (09:34 -0700)
- Fix the !CONFIG_FRAME_POINTER && !CONFIG_KALLSYMS output formatting.

- Make print_context_stack() static

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

index f8eebf6de2f3fff5cf796bc8e935d941924f4235..b5a1303e337bdbf9d0af3028eb7f616c21d4bd23 100644 (file)
@@ -103,7 +103,7 @@ static int valid_stack_ptr(struct task_struct *task, void *p)
 }
 
 #ifdef CONFIG_FRAME_POINTER
-void print_context_stack(struct task_struct *task, unsigned long *stack,
+static void print_context_stack(struct task_struct *task, unsigned long *stack,
                         unsigned long ebp)
 {
        unsigned long addr;
@@ -117,7 +117,7 @@ void print_context_stack(struct task_struct *task, unsigned long *stack,
        }
 }
 #else
-void print_context_stack(struct task_struct *task, unsigned long *stack,
+static void print_context_stack(struct task_struct *task, unsigned long *stack,
                         unsigned long ebp)
 {
        unsigned long addr;
@@ -125,8 +125,9 @@ void print_context_stack(struct task_struct *task, unsigned long *stack,
        while (!kstack_end(stack)) {
                addr = *stack++;
                if (__kernel_text_address(addr)) {
-                       printk(" [<%08lx>] ", addr);
-                       print_symbol("%s\n", addr);
+                       printk(" [<%08lx>]", addr);
+                       print_symbol(" %s", addr);
+                       printk("\n");
                }
        }
 }