mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 20:19:22 -04:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user