diff options
author | Ioana Ciornei <ciorneiioana@gmail.com> | 2015-03-31 02:29:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-01 17:37:57 +0200 |
commit | c471c989addf4d806c62ece60d6cfd6d9ad50c95 (patch) | |
tree | 247c9113eb1d9de6b752f5d40beba106b6b992d9 /drivers | |
parent | 4b80af40ebd61fcaaa9a2326a4ce401b5fe7c103 (diff) | |
download | op-kernel-dev-c471c989addf4d806c62ece60d6cfd6d9ad50c95.zip op-kernel-dev-c471c989addf4d806c62ece60d6cfd6d9ad50c95.tar.gz |
staging: dgnc_sysfs: Replace printk(KERN_ERR ) with pr_err()
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/dgnc/dgnc_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc_sysfs.c index 2df889e..65551d1 100644 --- a/drivers/staging/dgnc/dgnc_sysfs.c +++ b/drivers/staging/dgnc/dgnc_sysfs.c @@ -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"); } |