bcachefs: fix security warning in pr_name_and_units

Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Daniel B. Hill 2022-10-18 09:54:32 +13:00 committed by Kent Overstreet
parent f83009cda3
commit 55b8550d30

View 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);