diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-09-24 14:45:26 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-10-07 15:46:22 +0200 |
commit | 76ecfcb0852eb0390881a695a2f349b804d80147 (patch) | |
tree | 5fa0c8a2c52ebb037996ba956b8219981879b39c | |
parent | 288f295e0a49481c4ff64715b6b3eb8ebfe3432b (diff) | |
download | linux-stable-76ecfcb0852eb0390881a695a2f349b804d80147.tar.gz linux-stable-76ecfcb0852eb0390881a695a2f349b804d80147.tar.bz2 linux-stable-76ecfcb0852eb0390881a695a2f349b804d80147.zip |
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>
-rw-r--r-- | samples/configfs/configfs_sample.c | 5 |
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; } } |