summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-09-24 14:45:26 +0200
committerChristoph Hellwig <hch@lst.de>2020-10-07 15:46:22 +0200
commit76ecfcb0852eb0390881a695a2f349b804d80147 (patch)
tree5fa0c8a2c52ebb037996ba956b8219981879b39c /samples
parent288f295e0a49481c4ff64715b6b3eb8ebfe3432b (diff)
samples: configfs: prefer pr_err() over bare printk(KERN_ERR
pr_*() printing helpers are preferred over using bare printk(). Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'samples')
-rw-r--r--samples/configfs/configfs_sample.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c
index 83e2ad7a1b08..f9008be7a8a1 100644
--- a/samples/configfs/configfs_sample.c
+++ b/samples/configfs/configfs_sample.c
@@ -341,9 +341,8 @@ static int __init configfs_example_init(void)
mutex_init(&subsys->su_mutex);
ret = configfs_register_subsystem(subsys);
if (ret) {
- printk(KERN_ERR "Error %d while registering subsystem %s\n",
- ret,
- subsys->su_group.cg_item.ci_namebuf);
+ pr_err("Error %d while registering subsystem %s\n",
+ ret, subsys->su_group.cg_item.ci_namebuf);
goto out_unregister;
}
}