From: Kent Overstreet Date: Sat, 2 Apr 2022 20:30:37 +0000 (-0400) Subject: bcachefs: Fix pr_buf() calls X-Git-Tag: v6.7-rc1~201^2~1017 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c32fc674d4ca13f3b889693a2b59365d93a77144;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Fix pr_buf() calls In a few places we were passing a variable to pr_buf() for the format string - oops. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/opts.c b/fs/bcachefs/opts.c index 77fbb7d2194e9..385451ef865ef 100644 --- a/fs/bcachefs/opts.c +++ b/fs/bcachefs/opts.c @@ -324,7 +324,7 @@ void bch2_opt_to_text(struct printbuf *out, if (flags & OPT_SHOW_FULL_LIST) bch2_string_opt_to_text(out, opt->choices, v); else - pr_buf(out, opt->choices[v]); + pr_buf(out, "%s", opt->choices[v]); break; case BCH_OPT_FN: opt->to_text(out, c, sb, v); diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index 085f1c3573836..1629d279f4940 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -388,7 +388,7 @@ static inline void pr_uuid(struct printbuf *out, u8 *uuid) char uuid_str[40]; uuid_unparse_lower(uuid, uuid_str); - pr_buf(out, uuid_str); + pr_buf(out, "%s", uuid_str); } int bch2_strtoint_h(const char *, int *);