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>
This commit is contained in:
Bartosz Golaszewski 2020-09-24 14:45:26 +02:00 committed by Christoph Hellwig
parent 288f295e0a
commit 76ecfcb085

View File

@ -341,9 +341,8 @@ static int __init configfs_example_init(void)
mutex_init(&subsys->su_mutex); mutex_init(&subsys->su_mutex);
ret = configfs_register_subsystem(subsys); ret = configfs_register_subsystem(subsys);
if (ret) { if (ret) {
printk(KERN_ERR "Error %d while registering subsystem %s\n", pr_err("Error %d while registering subsystem %s\n",
ret, ret, subsys->su_group.cg_item.ci_namebuf);
subsys->su_group.cg_item.ci_namebuf);
goto out_unregister; goto out_unregister;
} }
} }