staging: dgnc_sysfs: Replace printk(KERN_ERR ) with pr_err()
authorIoana Ciornei <ciorneiioana@gmail.com>
Mon, 30 Mar 2015 23:29:35 +0000 (02:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2015 15:37:57 +0000 (17:37 +0200)
Fix the following checkpatch warning:
WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ...
then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...

Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_sysfs.c

index 2df889e..65551d1 100644 (file)
@@ -75,7 +75,7 @@ void dgnc_create_driver_sysfiles(struct pci_driver *dgnc_driver)
        rc |= driver_create_file(driverfs, &driver_attr_maxboards);
        rc |= driver_create_file(driverfs, &driver_attr_pollrate);
        if (rc)
-               printk(KERN_ERR "DGNC: sysfs driver_create_file failed!\n");
+               pr_err("DGNC: sysfs driver_create_file failed!\n");
 }