瀏覽代碼

drivers: char: misc: Replace printk with pr_err.

Replace printk with pr_err to fix the checkpatch issue.

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Varsha Rao 8 年之前
父節點
當前提交
8ab44b4003
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/char/misc.c

+ 1 - 1
drivers/char/misc.c

@@ -294,7 +294,7 @@ static int __init misc_init(void)
 	return 0;
 	return 0;
 
 
 fail_printk:
 fail_printk:
-	printk("unable to get major %d for misc devices\n", MISC_MAJOR);
+	pr_err("unable to get major %d for misc devices\n", MISC_MAJOR);
 	class_destroy(misc_class);
 	class_destroy(misc_class);
 fail_remove:
 fail_remove:
 	if (ret)
 	if (ret)