diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-22 01:13:01 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-29 22:18:18 -0400 |
commit | 9f20109509c553feeb57600a8a3b5e3177b43f6d (patch) | |
tree | 1153e5b34dad50e9816c4b705a8fed876b7a065f /libbcachefs/sb-errors.c | |
parent | 7a98f526b52e0ad9a13c77edd1fda528e23640da (diff) |
Update bcachefs sources to 438696e03da7 bcachefs: rename version -> bversion for big endian builds
Diffstat (limited to 'libbcachefs/sb-errors.c')
-rw-r--r-- | libbcachefs/sb-errors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcachefs/sb-errors.c b/libbcachefs/sb-errors.c index c1270d79..013a9688 100644 --- a/libbcachefs/sb-errors.c +++ b/libbcachefs/sb-errors.c @@ -7,12 +7,12 @@ const char * const bch2_sb_error_strs[] = { #define x(t, n, ...) [n] = #t, BCH_SB_ERRS() - NULL +#undef x }; -static void bch2_sb_error_id_to_text(struct printbuf *out, enum bch_sb_error_id id) +void bch2_sb_error_id_to_text(struct printbuf *out, enum bch_sb_error_id id) { - if (id < BCH_SB_ERR_MAX) + if (id < BCH_FSCK_ERR_MAX) prt_str(out, bch2_sb_error_strs[id]); else prt_printf(out, "(unknown error %u)", id); |