diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-13 19:55:09 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:37 -0500 |
commit | 5fd24caf572db0d1ccb03d3132fa1e249e84dd8b (patch) | |
tree | 61b2c0ba3734bb5cbebb385f929cf3fc871d17e7 /fs/bcachefs/util.c | |
parent | e56978c80d86523e90c8fb4a23dfca9db5f60bf7 (diff) |
bcachefs: Fix userspace bch2_prt_datetime()
ctime_r() outputs a newline, which we don't want.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.c')
-rw-r--r-- | fs/bcachefs/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c index 8d580d5a9c4d..e85b1f467295 100644 --- a/fs/bcachefs/util.c +++ b/fs/bcachefs/util.c @@ -322,6 +322,7 @@ void bch2_prt_datetime(struct printbuf *out, time64_t sec) time_t t = sec; char buf[64]; ctime_r(&t, buf); + strim(buf); prt_str(out, buf); } #else |