diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2011-03-06 19:47:46 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2011-03-06 19:47:46 +0000 |
commit | a9cf49ab39a0906ecfb1e964190da1964805fac9 (patch) | |
tree | 13c695a6514c3ee36d34f966c45045c8b283fc34 | |
parent | fdf6b12d1c6eac207346dbb571a12b9f4a1bc610 (diff) |
Notes
-rw-r--r-- | lib/libc/stdio/xprintf_time.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdio/xprintf_time.c b/lib/libc/stdio/xprintf_time.c index c80681e4d29a..debfac579fa6 100644 --- a/lib/libc/stdio/xprintf_time.c +++ b/lib/libc/stdio/xprintf_time.c @@ -62,7 +62,7 @@ __printf_render_time(struct __printf_io *io, const struct printf_info *pi, const struct timespec *ts; time_t *tp; intmax_t t, tx; - int i, prec, nsec; + int i, prec, nsec, ret; if (pi->is_long) { tv = *((struct timeval **)arg[0]); @@ -116,5 +116,7 @@ __printf_render_time(struct __printf_io *io, const struct printf_info *pi, const nsec /= 10; p += sprintf(p, ".%.*d", prec, nsec); } - return(__printf_out(io, pi, buf, p - buf)); + ret = __printf_out(io, pi, buf, p - buf); + __printf_flush(io); + return (ret); } |