Skip to content

Commit

Permalink
mm: ksm use pr_err instead of printk
Browse files Browse the repository at this point in the history
WARNING: Prefer: pr_err(...  to printk(KERN_ERR ...

[[email protected]: remove KERN_ERR]
Signed-off-by: Paul McQuade <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
paulmcquad authored and torvalds committed Oct 10, 2014
1 parent 22880eb commit 25acde3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/ksm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2310,15 +2310,15 @@ static int __init ksm_init(void)

ksm_thread = kthread_run(ksm_scan_thread, NULL, "ksmd");
if (IS_ERR(ksm_thread)) {
printk(KERN_ERR "ksm: creating kthread failed\n");
pr_err("ksm: creating kthread failed\n");
err = PTR_ERR(ksm_thread);
goto out_free;
}

#ifdef CONFIG_SYSFS
err = sysfs_create_group(mm_kobj, &ksm_attr_group);
if (err) {
printk(KERN_ERR "ksm: register sysfs failed\n");
pr_err("ksm: register sysfs failed\n");
kthread_stop(ksm_thread);
goto out_free;
}
Expand Down

0 comments on commit 25acde3

Please sign in to comment.