Skip to content

Commit aba871f

Browse files
Fabian Fredericktorvalds
authored andcommitted
kernel/profile.c: convert printk to pr_foo()
Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9606d9a commit aba871f

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

‎kernel/profile.c‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,35 +64,31 @@ int profile_setup(char *str)
6464
str += strlen(sleepstr) + 1;
6565
if (get_option(&str, &par))
6666
prof_shift = par;
67-
printk(KERN_INFO
68-
"kernel sleep profiling enabled (shift: %ld)\n",
67+
pr_info("kernel sleep profiling enabled (shift: %ld)\n",
6968
prof_shift);
7069
#else
71-
printk(KERN_WARNING
72-
"kernel sleep profiling requires CONFIG_SCHEDSTATS\n");
70+
pr_warn("kernel sleep profiling requires CONFIG_SCHEDSTATS\n");
7371
#endif /* CONFIG_SCHEDSTATS */
7472
} else if (!strncmp(str, schedstr, strlen(schedstr))) {
7573
prof_on = SCHED_PROFILING;
7674
if (str[strlen(schedstr)] == ',')
7775
str += strlen(schedstr) + 1;
7876
if (get_option(&str, &par))
7977
prof_shift = par;
80-
printk(KERN_INFO
81-
"kernel schedule profiling enabled (shift: %ld)\n",
78+
pr_info("kernel schedule profiling enabled (shift: %ld)\n",
8279
prof_shift);
8380
} else if (!strncmp(str, kvmstr, strlen(kvmstr))) {
8481
prof_on = KVM_PROFILING;
8582
if (str[strlen(kvmstr)] == ',')
8683
str += strlen(kvmstr) + 1;
8784
if (get_option(&str, &par))
8885
prof_shift = par;
89-
printk(KERN_INFO
90-
"kernel KVM profiling enabled (shift: %ld)\n",
86+
pr_info("kernel KVM profiling enabled (shift: %ld)\n",
9187
prof_shift);
9288
} else if (get_option(&str, &par)) {
9389
prof_shift = par;
9490
prof_on = CPU_PROFILING;
95-
printk(KERN_INFO "kernel profiling enabled (shift: %ld)\n",
91+
pr_info("kernel profiling enabled (shift: %ld)\n",
9692
prof_shift);
9793
}
9894
return 1;

0 commit comments

Comments
 (0)