From: Martin Kepplinger Date: Tue, 29 Apr 2014 09:43:08 +0000 (+0200) Subject: staging: dgnc: use dev_err() instead of printk() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f33ae1ed6ac39da7b1f73972eb4791fe43d15d3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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; }