Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1615380

[PATCH 4/5] drivers: char: Replace printk with pr_err.

From Varsha Rao <rvarsha016@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 4/5] drivers: char: Replace printk with pr_err.
Date 2017-04-03 18:20 +0200
Message-ID <tscRX-Lq-1@gated-at.bofh.it> (permalink)
References <tscIh-GV-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Replace printk with pr_err to fix the checkpatch issue.

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
---
 drivers/char/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/misc.c b/drivers/char/misc.c
index 1312e29..c9cd1ea 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)
-- 
2.9.3

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 4/5] drivers: char: Replace printk with pr_err. Varsha Rao <rvarsha016@gmail.com> - 2017-04-03 18:20 +0200

csiph-web