All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] toshiba: Add correct printk log level while emitting error log
@ 2019-08-18  6:39 Rishi Gupta
  2019-08-18  6:48 ` Joe Perches
  0 siblings, 1 reply; 5+ messages in thread
From: Rishi Gupta @ 2019-08-18  6:39 UTC (permalink / raw)
  To: jonathan; +Cc: arnd, gregkh, linux-kernel, Rishi Gupta

printk function is invoked without specifying KERN_ERR log
level when printing error messages. This commit fixes this.

Signed-off-by: Rishi Gupta <gupt21@gmail.com>
---
 drivers/char/toshiba.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/char/toshiba.c b/drivers/char/toshiba.c
index 0bdc602..3ad6b18 100644
--- a/drivers/char/toshiba.c
+++ b/drivers/char/toshiba.c
@@ -373,7 +373,7 @@ static int tosh_get_machine_id(void __iomem *bios)
 		   value. This has been verified on a Satellite Pro 430CDT,
 		   Tecra 750CDT, Tecra 780DVD and Satellite 310CDT. */
 #if TOSH_DEBUG
-		printk("toshiba: debugging ID ebx=0x%04x\n", regs.ebx);
+		printk(KERN_DEBUG "toshiba: debugging ID ebx=0x%04x\n", regs.ebx);
 #endif
 		bx = 0xe6f5;
 
@@ -417,7 +417,7 @@ static int tosh_probe(void)
 
 	for (i=0;i<7;i++) {
 		if (readb(bios+0xe010+i)!=signature[i]) {
-			printk("toshiba: not a supported Toshiba laptop\n");
+			printk(KERN_ERR "toshiba: not a supported Toshiba laptop\n");
 			iounmap(bios);
 			return -ENODEV;
 		}
@@ -433,7 +433,7 @@ static int tosh_probe(void)
 	/* if this is not a Toshiba laptop carry flag is set and ah=0x86 */
 
 	if ((flag==1) || ((regs.eax & 0xff00)==0x8600)) {
-		printk("toshiba: not a supported Toshiba laptop\n");
+		printk(KERN_ERR "toshiba: not a supported Toshiba laptop\n");
 		iounmap(bios);
 		return -ENODEV;
 	}
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-25 10:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-18  6:39 [PATCH] toshiba: Add correct printk log level while emitting error log Rishi Gupta
2019-08-18  6:48 ` Joe Perches
2019-08-18  7:34   ` [PATCH v2] " Rishi Gupta
2019-08-19  0:10     ` Joe Perches
2019-08-25 10:36       ` rishi gupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.