Skip to content

Commit 8ab44b4

Browse files
varshar16gregkh
authored andcommitted
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>
1 parent 5b884a9 commit 8ab44b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/char/misc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static int __init misc_init(void)
294294
return 0;
295295

296296
fail_printk:
297-
printk("unable to get major %d for misc devices\n", MISC_MAJOR);
297+
pr_err("unable to get major %d for misc devices\n", MISC_MAJOR);
298298
class_destroy(misc_class);
299299
fail_remove:
300300
if (ret)

0 commit comments

Comments
 (0)