summaryrefslogtreecommitdiffstats
path: root/drivers/char/misc.c
diff options
context:
space:
mode:
authorVarsha Rao <rvarsha016@gmail.com>2017-04-07 13:34:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-08 17:53:06 +0200
commit8ab44b4003381cf4bae7ccdfe81059aa9ce76033 (patch)
tree98f511760a2bc0fa31596c512c14fbcf899f8871 /drivers/char/misc.c
parentdrivers: char: misc: Add blank line after declaration. (diff)
downloadlinux-8ab44b4003381cf4bae7ccdfe81059aa9ce76033.tar.xz
linux-8ab44b4003381cf4bae7ccdfe81059aa9ce76033.zip
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>
Diffstat (limited to 'drivers/char/misc.c')
-rw-r--r--drivers/char/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/misc.c b/drivers/char/misc.c
index 1312e29deb00..c9cd1ea6844a 100644
--- a/drivers/char/misc.c
+++ b/drivers/char/misc.c
@@ -294,7 +294,7 @@ static int __init misc_init(void)
return 0;
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);
fail_remove:
if (ret)