]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: Improve an error message
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 7 Aug 2022 03:02:09 +0000 (23:02 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:37 +0000 (17:09 -0400)
Update an error message to use bch2_err_str().

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/io.c

index 0348e2ab642280977f5163e744291669faeb1600..44fb14a5b5aee7f263c72616e07311bea908ba4d 100644 (file)
@@ -674,7 +674,7 @@ static void __bch2_write_index(struct bch_write_op *op)
 
                if (ret) {
                        bch_err_inum_ratelimited(c, op->pos.inode,
-                               "write error %i from btree update", ret);
+                               "write error while doing btree update: %s", bch2_err_str(ret));
                        goto err;
                }
        }