[libvirt] [PATCH] Fix off-by-one printing month in logging code

Eric Blake eblake at redhat.com
Mon Oct 24 18:04:20 UTC 2011


On 10/24/2011 10:35 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange"<berrange at redhat.com>
>
> The field 'mon' in 'struct tm' gives months 0-11, where as
> humans tend to expect months 1-12. Thus the month number
> needing adjusting by 1
>
> * src/util/logging.c: Use human friendly month number
> ---
>   src/util/logging.c |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list