diff options
author | Daniel B. Hill <daniel@gluo.nz> | 2022-10-17 22:54:32 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:44 +0200 |
commit | 55b8550d304a1c0884e98d0bb7126d490a96128f (patch) | |
tree | 3acf1c6c41d5ec49b09f8c9a63e51f804d6b0bca /fs/bcachefs/util.c | |
parent | bcachefs: Don't issue transaction restart on key cache realloc (diff) | |
download | linux-55b8550d304a1c0884e98d0bb7126d490a96128f.tar.xz linux-55b8550d304a1c0884e98d0bb7126d490a96128f.zip |
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>
Diffstat (limited to 'fs/bcachefs/util.c')
-rw-r--r-- | fs/bcachefs/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c index ee85bb27e231..a58239fb2a6d 100644 --- a/fs/bcachefs/util.c +++ b/fs/bcachefs/util.c @@ -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); |