From 93bd2f877f221f05a1b51dcfac09d196c8bcda5c Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 20 Feb 2023 14:34:38 -0500 Subject: [PATCH] bcachefs: Improve a verbose log message We should be using bch2_err_str() where applicable. Signed-off-by: Kent Overstreet --- fs/bcachefs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index b030d0bb26e7..cc27f19960f1 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -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",