mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 00:00:52 +07:00
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:
parent
288f295e0a
commit
76ecfcb085
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user