[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH] hvm: Correct RTC time offset update error due to tm->tm_year
On 2012-2-22 21:58, Ian Campbell wrote:
Yes, this looks plausible to me (although I'm no expert on this code).
Something similar happens in rtc_next_second.
Perhaps it would be better to add a function or macro to do the
conversion, such that it is somewhat self documenting? Or at least make
the 1900 a #define with a suitable name.
Sure.
How about
#define epoch_year 1900
#define get_year(x) (x + epoch_year)
?
Thanks,
Annie
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|