All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: sm750fb: Add log level to printk().
@ 2016-10-04  9:53 Elise-Lennion
  2016-10-04 10:15 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 4+ messages in thread
From: Elise-Lennion @ 2016-10-04  9:53 UTC (permalink / raw)
  To: sudipm.mukherjee, teddy.wang, gregkh, outreachy-kernel

Fix checkpatch warning:

WARNING: printk() should include KERN_ facility level

KERN_ facility levels ensure that unecessary messages, in different steps of driver implemention and testing, don't saturate the log file.

When log level is not explicited it defaults to DEFAULT_MESSAGE_LOGLEVEL (usually "4"=KERN_WARNING). A module startup message usually isn't a WARNING.

Signed-off-by: Elise-Lennion <elise.lennion@gmail.com>
---
 drivers/staging/sm750fb/ddk750_help.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/sm750fb/ddk750_help.c b/drivers/staging/sm750fb/ddk750_help.c
index 9637dd3..fc7e936 100644
--- a/drivers/staging/sm750fb/ddk750_help.c
+++ b/drivers/staging/sm750fb/ddk750_help.c
@@ -11,7 +11,7 @@ void ddk750_set_mmio(void __iomem *addr, unsigned short devId, char revId)
 	devId750 = devId;
 	revId750 = revId;
 	if (revId == 0xfe)
-		printk("found sm750le\n");
+		printk(KERN_INFO "found sm750le\n");
 }
 
 
-- 
2.7.4



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

end of thread, other threads:[~2016-10-05  5:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-04  9:53 [PATCH] staging: sm750fb: Add log level to printk() Elise-Lennion
2016-10-04 10:15 ` [Outreachy kernel] " Julia Lawall
2016-10-04 23:19   ` Elise Lennion
2016-10-05  5:50     ` Julia Lawall

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.