Skip to content

Commit

Permalink
samples: configfs: prefer pr_err() over bare printk(KERN_ERR
Browse files Browse the repository at this point in the history
pr_*() printing helpers are preferred over using bare printk().

Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
brgl authored and Christoph Hellwig committed Oct 7, 2020
1 parent 288f295 commit 76ecfcb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions samples/configfs/configfs_sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 76ecfcb

Please sign in to comment.