Skip to content

Commit 462b29b

Browse files
Fabian Fredericktorvalds
authored andcommitted
kernel/backtracetest.c: replace no level printk by pr_info()
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 84117da commit 462b29b

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎kernel/backtracetest.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
static void backtrace_test_normal(void)
2121
{
22-
printk("Testing a backtrace from process context.\n");
23-
printk("The following trace is a kernel self test and not a bug!\n");
22+
pr_info("Testing a backtrace from process context.\n");
23+
pr_info("The following trace is a kernel self test and not a bug!\n");
2424

2525
dump_stack();
2626
}
@@ -37,8 +37,8 @@ static DECLARE_TASKLET(backtrace_tasklet, &backtrace_test_irq_callback, 0);
3737

3838
static void backtrace_test_irq(void)
3939
{
40-
printk("Testing a backtrace from irq context.\n");
41-
printk("The following trace is a kernel self test and not a bug!\n");
40+
pr_info("Testing a backtrace from irq context.\n");
41+
pr_info("The following trace is a kernel self test and not a bug!\n");
4242

4343
init_completion(&backtrace_work);
4444
tasklet_schedule(&backtrace_tasklet);
@@ -51,8 +51,8 @@ static void backtrace_test_saved(void)
5151
struct stack_trace trace;
5252
unsigned long entries[8];
5353

54-
printk("Testing a saved backtrace.\n");
55-
printk("The following trace is a kernel self test and not a bug!\n");
54+
pr_info("Testing a saved backtrace.\n");
55+
pr_info("The following trace is a kernel self test and not a bug!\n");
5656

5757
trace.nr_entries = 0;
5858
trace.max_entries = ARRAY_SIZE(entries);
@@ -65,19 +65,19 @@ static void backtrace_test_saved(void)
6565
#else
6666
static void backtrace_test_saved(void)
6767
{
68-
printk("Saved backtrace test skipped.\n");
68+
pr_info("Saved backtrace test skipped.\n");
6969
}
7070
#endif
7171

7272
static int backtrace_regression_test(void)
7373
{
74-
printk("====[ backtrace testing ]===========\n");
74+
pr_info("====[ backtrace testing ]===========\n");
7575

7676
backtrace_test_normal();
7777
backtrace_test_irq();
7878
backtrace_test_saved();
7979

80-
printk("====[ end of backtrace testing ]====\n");
80+
pr_info("====[ end of backtrace testing ]====\n");
8181
return 0;
8282
}
8383

0 commit comments

Comments
 (0)