Commit 462b29b8 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

kernel/backtracetest.c: replace no level printk by pr_info()

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 84117da5
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
static void backtrace_test_normal(void) static void backtrace_test_normal(void)
{ {
printk("Testing a backtrace from process context.\n"); pr_info("Testing a backtrace from process context.\n");
printk("The following trace is a kernel self test and not a bug!\n"); pr_info("The following trace is a kernel self test and not a bug!\n");
dump_stack(); dump_stack();
} }
...@@ -37,8 +37,8 @@ static DECLARE_TASKLET(backtrace_tasklet, &backtrace_test_irq_callback, 0); ...@@ -37,8 +37,8 @@ static DECLARE_TASKLET(backtrace_tasklet, &backtrace_test_irq_callback, 0);
static void backtrace_test_irq(void) static void backtrace_test_irq(void)
{ {
printk("Testing a backtrace from irq context.\n"); pr_info("Testing a backtrace from irq context.\n");
printk("The following trace is a kernel self test and not a bug!\n"); pr_info("The following trace is a kernel self test and not a bug!\n");
init_completion(&backtrace_work); init_completion(&backtrace_work);
tasklet_schedule(&backtrace_tasklet); tasklet_schedule(&backtrace_tasklet);
...@@ -51,8 +51,8 @@ static void backtrace_test_saved(void) ...@@ -51,8 +51,8 @@ static void backtrace_test_saved(void)
struct stack_trace trace; struct stack_trace trace;
unsigned long entries[8]; unsigned long entries[8];
printk("Testing a saved backtrace.\n"); pr_info("Testing a saved backtrace.\n");
printk("The following trace is a kernel self test and not a bug!\n"); pr_info("The following trace is a kernel self test and not a bug!\n");
trace.nr_entries = 0; trace.nr_entries = 0;
trace.max_entries = ARRAY_SIZE(entries); trace.max_entries = ARRAY_SIZE(entries);
...@@ -65,19 +65,19 @@ static void backtrace_test_saved(void) ...@@ -65,19 +65,19 @@ static void backtrace_test_saved(void)
#else #else
static void backtrace_test_saved(void) static void backtrace_test_saved(void)
{ {
printk("Saved backtrace test skipped.\n"); pr_info("Saved backtrace test skipped.\n");
} }
#endif #endif
static int backtrace_regression_test(void) static int backtrace_regression_test(void)
{ {
printk("====[ backtrace testing ]===========\n"); pr_info("====[ backtrace testing ]===========\n");
backtrace_test_normal(); backtrace_test_normal();
backtrace_test_irq(); backtrace_test_irq();
backtrace_test_saved(); backtrace_test_saved();
printk("====[ end of backtrace testing ]====\n"); pr_info("====[ end of backtrace testing ]====\n");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment