Commit 0f33ae1e authored by Martin Kepplinger's avatar Martin Kepplinger Committed by Greg Kroah-Hartman

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: default avatarMartin Kepplinger <martink@posteo.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 36aa10aa
...@@ -739,7 +739,7 @@ void dgnc_create_tty_sysfs(struct un_t *un, struct device *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); ret = sysfs_create_group(&c->kobj, &dgnc_tty_attribute_group);
if (ret) { 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); sysfs_remove_group(&c->kobj, &dgnc_tty_attribute_group);
return; return;
} }
......
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