Commit 76ecfcb0 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Christoph Hellwig

samples: configfs: prefer pr_err() over bare printk(KERN_ERR

pr_*() printing helpers are preferred over using bare printk().
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 288f295e
......@@ -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;
}
}
......
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