.. | .. |
---|
31 | 31 | } |
---|
32 | 32 | __setup("kstack=", kstack_setup); |
---|
33 | 33 | |
---|
34 | | -void show_stack(struct task_struct *task, unsigned long *sp) |
---|
| 34 | +void show_stack(struct task_struct *task, unsigned long *sp, const char *loglvl) |
---|
35 | 35 | { |
---|
36 | 36 | unsigned long words_to_show; |
---|
37 | 37 | u32 fp = (u32) sp; |
---|
.. | .. |
---|
50 | 50 | if (kstack_depth_to_print && (words_to_show > kstack_depth_to_print)) |
---|
51 | 51 | words_to_show = kstack_depth_to_print; |
---|
52 | 52 | |
---|
53 | | - pr_info("Kernel Stack:\n"); |
---|
| 53 | + printk("%sKernel Stack:\n", loglvl); |
---|
54 | 54 | |
---|
55 | 55 | /* |
---|
56 | 56 | * Make the first line an 'odd' size if necessary to get |
---|
.. | .. |
---|
65 | 65 | words_to_show -= line1_words; |
---|
66 | 66 | } |
---|
67 | 67 | } |
---|
68 | | - print_hex_dump(KERN_INFO, "", DUMP_PREFIX_ADDRESS, 32, 4, (void *)fp, |
---|
| 68 | + print_hex_dump(loglvl, "", DUMP_PREFIX_ADDRESS, 32, 4, (void *)fp, |
---|
69 | 69 | words_to_show << 2, 0); |
---|
70 | | - pr_info("\n\nCall Trace:\n"); |
---|
71 | | - microblaze_unwind(task, NULL); |
---|
72 | | - pr_info("\n"); |
---|
| 70 | + printk("%s\n\nCall Trace:\n", loglvl); |
---|
| 71 | + microblaze_unwind(task, NULL, loglvl); |
---|
| 72 | + printk("%s\n", loglvl); |
---|
73 | 73 | |
---|
74 | 74 | if (!task) |
---|
75 | 75 | task = current; |
---|