Commit 93bd2f87 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Improve a verbose log message

We should be using bch2_err_str() where applicable.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 9f6db127
......@@ -1920,7 +1920,8 @@ struct bch_fs *bch2_fs_open(char * const *devices, unsigned nr_devices,
kfree(sb);
printbuf_exit(&errbuf);
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;
err_print:
pr_err("bch_fs_open err opening %s: %s",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment