1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

bcachefs: Improve a verbose log message

We should be using bch2_err_str() where applicable.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2023-02-20 14:34:38 -05:00
parent 9f6db1276c
commit 93bd2f877f

View file

@ -1920,7 +1920,8 @@ out:
kfree(sb); kfree(sb);
printbuf_exit(&errbuf); printbuf_exit(&errbuf);
module_put(THIS_MODULE); module_put(THIS_MODULE);
pr_verbose_init(opts, "ret %i", PTR_ERR_OR_ZERO(c)); pr_verbose_init(opts, "ret %s (%i)", bch2_err_str(PTR_ERR_OR_ZERO(c)),
PTR_ERR_OR_ZERO(c));
return c; return c;
err_print: err_print:
pr_err("bch_fs_open err opening %s: %s", pr_err("bch_fs_open err opening %s: %s",