提交 25acde31 编写于 作者: P Paul McQuade 提交者: Linus Torvalds

mm: ksm use pr_err instead of printk

WARNING: Prefer: pr_err(...  to printk(KERN_ERR ...

[akpm@linux-foundation.org: remove KERN_ERR]
Signed-off-by: NPaul McQuade <paulmcquad@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 22880ebe
...@@ -2310,7 +2310,7 @@ static int __init ksm_init(void) ...@@ -2310,7 +2310,7 @@ static int __init ksm_init(void)
ksm_thread = kthread_run(ksm_scan_thread, NULL, "ksmd"); ksm_thread = kthread_run(ksm_scan_thread, NULL, "ksmd");
if (IS_ERR(ksm_thread)) { 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); err = PTR_ERR(ksm_thread);
goto out_free; goto out_free;
} }
...@@ -2318,7 +2318,7 @@ static int __init ksm_init(void) ...@@ -2318,7 +2318,7 @@ static int __init ksm_init(void)
#ifdef CONFIG_SYSFS #ifdef CONFIG_SYSFS
err = sysfs_create_group(mm_kobj, &ksm_attr_group); err = sysfs_create_group(mm_kobj, &ksm_attr_group);
if (err) { if (err) {
printk(KERN_ERR "ksm: register sysfs failed\n"); pr_err("ksm: register sysfs failed\n");
kthread_stop(ksm_thread); kthread_stop(ksm_thread);
goto out_free; goto out_free;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册