Date: Tue, 29 Mar 2011 17:52:45 +0000 (UTC) From: Mikolaj Golub <trociny@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/stdio xprintf_time.c Message-ID: <201103291753.p2THr2sT087832@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
trociny 2011-03-29 17:52:45 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
lib/libc/stdio xprintf_time.c
Log:
SVN rev 220138 on 2011-03-29 17:52:45Z by trociny
MFC r219342, r219346:
r219342 (pjd):
Fix various issues in how %#T is handled:
- If precision is 0, don't print period followed by no digits.
- If precision is 0 stop printing units as soon as possible
(eg. if we have three years and five days and precision is 0
print only 3y5d).
- If precision is not 0, print all units (eg. 3y0d0h0m0s.00).
r219346 (pjd):
Because we call __printf_out() with a on-stack buffer, also call
__printf_flush() so we are sure it won't be referenced after we return.
Approved by: kib (co-mentor), pjd (mentor)
Revision Changes Path
1.3.12.2 +15 -9 src/lib/libc/stdio/xprintf_time.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103291753.p2THr2sT087832>
