mtd: mtdchar: use proper kernel print level
We normally use 'pr_err()' for error messages, not 'pr_notice()'. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
93e562141a
commit
57ae2b609f
|
@ -1249,16 +1249,18 @@ static int __init init_mtdchar(void)
|
||||||
ret = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS,
|
ret = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS,
|
||||||
"mtd", &mtd_fops);
|
"mtd", &mtd_fops);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
pr_notice("Can't allocate major number %d for "
|
pr_err("Can't allocate major number %d for MTD\n",
|
||||||
"Memory Technology Devices.\n", MTD_CHAR_MAJOR);
|
MTD_CHAR_MAJOR);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = register_filesystem(&mtd_inodefs_type);
|
ret = register_filesystem(&mtd_inodefs_type);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_notice("Can't register mtd_inodefs filesystem: %d\n", ret);
|
pr_err("Can't register mtd_inodefs filesystem, error %d\n",
|
||||||
|
ret);
|
||||||
goto err_unregister_chdev;
|
goto err_unregister_chdev;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
err_unregister_chdev:
|
err_unregister_chdev:
|
||||||
|
|
Loading…
Reference in New Issue