summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/super-io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-21 23:05:39 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:09:28 +0200
commit3756111d138b6c5983d0c7cc2de12a7ec3d1e3d4 (patch)
treeb0e046a9585e205d8b266c70b2ffb6c2bd182ead /fs/bcachefs/super-io.c
parentbcachefs: Reset journal flush delay to default value if zeroed (diff)
downloadlinux-3756111d138b6c5983d0c7cc2de12a7ec3d1e3d4.tar.xz
linux-3756111d138b6c5983d0c7cc2de12a7ec3d1e3d4.zip
bcachefs: Add printf format attribute to bch2_pr_buf()
This tells the compiler to check printf format strings, and catches a few bugs. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/super-io.c')
-rw-r--r--fs/bcachefs/super-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c
index 6d54319a95e6..5c87c7308274 100644
--- a/fs/bcachefs/super-io.c
+++ b/fs/bcachefs/super-io.c
@@ -1586,7 +1586,7 @@ void bch2_sb_to_text(struct printbuf *out, struct bch_sb *sb,
pr_buf(out, "Oldest version on disk:");
pr_tab(out);
- pr_buf(out, "%u", bch2_metadata_versions[le16_to_cpu(sb->version_min)]);
+ pr_buf(out, "%s", bch2_metadata_versions[le16_to_cpu(sb->version_min)]);
pr_newline(out);
pr_buf(out, "Created:");