bcachefs: fix security warning in pr_name_and_units
authorDaniel B. Hill <daniel@gluo.nz>
Mon, 17 Oct 2022 20:54:32 +0000 (09:54 +1300)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:44 +0000 (17:09 -0400)
Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/util.c

index ee85bb27e231212efd9a94956c65e5b64e928f4a..a58239fb2a6d88755de6ad696bccd5f48fe81755 100644 (file)
@@ -436,7 +436,7 @@ static void bch2_pr_time_units_aligned(struct printbuf *out, u64 ns)
 
 static inline void pr_name_and_units(struct printbuf *out, const char *name, u64 ns)
 {
-       prt_printf(out, name);
+       prt_str(out, name);
        prt_tab(out);
        bch2_pr_time_units_aligned(out, ns);
        prt_newline(out);