Subject: bug#7325: new test failure due to non-portability of printf formats like %05.3s

From: Eric Blake <[email-masked]>
Date: Thu, 11 Nov 2010 08:24:52 -0700

On 11/11/2010 07:26 AM, Pádraig Brady wrote:
>>>>   %.*X => precision determined by fstimeprec
>>>>
> 
> An alternative perhaps that doesn't require the above override
> behavior and is also forwards compat, is to use %.0X rather than %.*X

That sounds nicer to me.  I look at %.*X and think I have to supply the
precision, but %.0X as a mnemonic of 'show full precision but suppress
trailing zeros' kind of makes sense, and looks nicer than %#.X.

-- 
Eric Blake   [email-masked]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org