Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Varsha Rao and committed by
Greg Kroah-Hartman
8ab44b40 5b884a95

+1 -1
+1 -1
drivers/char/misc.c
··· 294 294 return 0; 295 295 296 296 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); 298 298 class_destroy(misc_class); 299 299 fail_remove: 300 300 if (ret)