forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/microblaze/kernel/traps.c
....@@ -31,7 +31,7 @@
3131 }
3232 __setup("kstack=", kstack_setup);
3333
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)
3535 {
3636 unsigned long words_to_show;
3737 u32 fp = (u32) sp;
....@@ -50,7 +50,7 @@
5050 if (kstack_depth_to_print && (words_to_show > kstack_depth_to_print))
5151 words_to_show = kstack_depth_to_print;
5252
53
- pr_info("Kernel Stack:\n");
53
+ printk("%sKernel Stack:\n", loglvl);
5454
5555 /*
5656 * Make the first line an 'odd' size if necessary to get
....@@ -65,11 +65,11 @@
6565 words_to_show -= line1_words;
6666 }
6767 }
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,
6969 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);
7373
7474 if (!task)
7575 task = current;