aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorMartin Kepplinger <martink@posteo.de>2014-04-29 11:43:08 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-15 13:46:00 -0700
commit0f33ae1ed6ac39da7b1f73972eb4791fe43d15d3 (patch)
treead4cf0411c20d64b89a1a5b23585ca24226ba35a /drivers/staging/dgnc
parent36aa10aa018c2ed5571ffd145f39d3fcf993cee0 (diff)
downloadlinux-stericsson-0f33ae1ed6ac39da7b1f73972eb4791fe43d15d3.tar.gz
staging: dgnc: use dev_err() instead of printk()
Use dev_err() insted of printk() in order to provice userspace with more useful information and use the common kernel coding style. Signed-off-by: Martin Kepplinger <martink@posteo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc_sysfs.c
index 946230c23487..0f0e8fcb663f 100644
--- a/drivers/staging/dgnc/dgnc_sysfs.c
+++ b/drivers/staging/dgnc/dgnc_sysfs.c
@@ -739,7 +739,7 @@ void dgnc_create_tty_sysfs(struct un_t *un, struct device *c)
ret = sysfs_create_group(&c->kobj, &dgnc_tty_attribute_group);
if (ret) {
- printk(KERN_ERR "dgnc: failed to create sysfs tty device attributes.\n");
+ dev_err(c, "dgnc: failed to create sysfs tty device attributes.\n");
sysfs_remove_group(&c->kobj, &dgnc_tty_attribute_group);
return;
}