You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Linus Torvalds
parent
9606d9aa85
commit
aba871f1e9
+5
-9
@@ -64,12 +64,10 @@ int profile_setup(char *str)
|
|||||||
str += strlen(sleepstr) + 1;
|
str += strlen(sleepstr) + 1;
|
||||||
if (get_option(&str, &par))
|
if (get_option(&str, &par))
|
||||||
prof_shift = par;
|
prof_shift = par;
|
||||||
printk(KERN_INFO
|
pr_info("kernel sleep profiling enabled (shift: %ld)\n",
|
||||||
"kernel sleep profiling enabled (shift: %ld)\n",
|
|
||||||
prof_shift);
|
prof_shift);
|
||||||
#else
|
#else
|
||||||
printk(KERN_WARNING
|
pr_warn("kernel sleep profiling requires CONFIG_SCHEDSTATS\n");
|
||||||
"kernel sleep profiling requires CONFIG_SCHEDSTATS\n");
|
|
||||||
#endif /* CONFIG_SCHEDSTATS */
|
#endif /* CONFIG_SCHEDSTATS */
|
||||||
} else if (!strncmp(str, schedstr, strlen(schedstr))) {
|
} else if (!strncmp(str, schedstr, strlen(schedstr))) {
|
||||||
prof_on = SCHED_PROFILING;
|
prof_on = SCHED_PROFILING;
|
||||||
@@ -77,8 +75,7 @@ int profile_setup(char *str)
|
|||||||
str += strlen(schedstr) + 1;
|
str += strlen(schedstr) + 1;
|
||||||
if (get_option(&str, &par))
|
if (get_option(&str, &par))
|
||||||
prof_shift = par;
|
prof_shift = par;
|
||||||
printk(KERN_INFO
|
pr_info("kernel schedule profiling enabled (shift: %ld)\n",
|
||||||
"kernel schedule profiling enabled (shift: %ld)\n",
|
|
||||||
prof_shift);
|
prof_shift);
|
||||||
} else if (!strncmp(str, kvmstr, strlen(kvmstr))) {
|
} else if (!strncmp(str, kvmstr, strlen(kvmstr))) {
|
||||||
prof_on = KVM_PROFILING;
|
prof_on = KVM_PROFILING;
|
||||||
@@ -86,13 +83,12 @@ int profile_setup(char *str)
|
|||||||
str += strlen(kvmstr) + 1;
|
str += strlen(kvmstr) + 1;
|
||||||
if (get_option(&str, &par))
|
if (get_option(&str, &par))
|
||||||
prof_shift = par;
|
prof_shift = par;
|
||||||
printk(KERN_INFO
|
pr_info("kernel KVM profiling enabled (shift: %ld)\n",
|
||||||
"kernel KVM profiling enabled (shift: %ld)\n",
|
|
||||||
prof_shift);
|
prof_shift);
|
||||||
} else if (get_option(&str, &par)) {
|
} else if (get_option(&str, &par)) {
|
||||||
prof_shift = par;
|
prof_shift = par;
|
||||||
prof_on = CPU_PROFILING;
|
prof_on = CPU_PROFILING;
|
||||||
printk(KERN_INFO "kernel profiling enabled (shift: %ld)\n",
|
pr_info("kernel profiling enabled (shift: %ld)\n",
|
||||||
prof_shift);
|
prof_shift);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user