]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/opts.c
Update bcachefs sources to ab3b6e7dd6 bcachefs: Fix pr_buf() calls
[bcachefs-tools-debian] / libbcachefs / opts.c
index 77fbb7d2194e956738e91385066f99b7019fee24..385451ef865ef086d624b8ddac5d49c509376a79 100644 (file)
@@ -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);