From cf92c9cc89d36197769acc450e7a869861220b3e Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Sun, 9 Mar 2014 08:21:13 +0530 Subject: [PATCH] staging:dgnc: Replace printk by pr_warn This patch replaces printk with pr_warn as the printk calls are used to display warnings to remove the checkpatch.pl warnings: WARNING: printk() should include KERN_ facility level and then WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ... on adding KERN_WARNING message designation. Signed-off-by: Himangi Saraogi Signed-off-by: Greg Kroah-Hartman --- drivers/staging/dgnc/dgnc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 20be96d54090..b1a39b25b419 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -236,7 +236,7 @@ int dgnc_init_module(void) if (dgnc_NumBoards) pci_unregister_driver(&dgnc_driver); else - printk("WARNING: dgnc driver load failed. No Digi Neo or Classic boards found.\n"); + pr_warn("WARNING: dgnc driver load failed. No Digi Neo or Classic boards found.\n"); dgnc_cleanup_module(); } -- 2.20.1