Commit 5fd24caf authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix userspace bch2_prt_datetime()

ctime_r() outputs a newline, which we don't want.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e56978c8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment