staging:dgnc: Replace printk by pr_warn
authorHimangi Saraogi <himangi774@gmail.com>
Sun, 9 Mar 2014 02:51:13 +0000 (08:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 03:21:13 +0000 (19:21 -0800)
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 <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c

index 20be96d54090cc956029436b61709144a2a05dfc..b1a39b25b41989999831737c96b22cb5fce36579 100644 (file)
@@ -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();
        }