Skip to content

Commit

Permalink
staging: dgnc_sysfs: Replace printk(KERN_ERR ) with pr_err()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ioana Ciornei authored and Greg Kroah-Hartman committed Apr 1, 2015
1 parent 4b80af4 commit c471c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/dgnc/dgnc_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}


Expand Down

0 comments on commit c471c98

Please sign in to comment.