projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e56978c
)
bcachefs: Fix userspace bch2_prt_datetime()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Tue, 14 Nov 2023 00:55:09 +0000
(19:55 -0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:37 +0000
(11:47 -0500)
ctime_r() outputs a newline, which we don't want.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/util.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/util.c
b/fs/bcachefs/util.c
index 8d580d5a9c4d86bd599d3570c93d8077c0c2a186..e85b1f4672952b2839e073c4516ffd6472f3b877 100644
(file)
--- 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