From owner-cvs-src-old@FreeBSD.ORG Tue Mar 29 17:53:02 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4502106572E for ; Tue, 29 Mar 2011 17:53:02 +0000 (UTC) (envelope-from trociny@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A10108FC14 for ; Tue, 29 Mar 2011 17:53:02 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p2THr2vX087833 for ; Tue, 29 Mar 2011 17:53:02 GMT (envelope-from trociny@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p2THr2sT087832 for cvs-src-old@freebsd.org; Tue, 29 Mar 2011 17:53:02 GMT (envelope-from trociny@repoman.freebsd.org) Message-Id: <201103291753.p2THr2sT087832@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to trociny@repoman.freebsd.org using -f From: Mikolaj Golub Date: Tue, 29 Mar 2011 17:52:45 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/lib/libc/stdio xprintf_time.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2011 17:53:02 -0000 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