Commit cf92c9cc authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Greg Kroah-Hartman

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: default avatarHimangi Saraogi <himangi774@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d2ff1d20
...@@ -236,7 +236,7 @@ int dgnc_init_module(void) ...@@ -236,7 +236,7 @@ int dgnc_init_module(void)
if (dgnc_NumBoards) if (dgnc_NumBoards)
pci_unregister_driver(&dgnc_driver); pci_unregister_driver(&dgnc_driver);
else 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(); dgnc_cleanup_module();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment