Loading...

xen-devel@lists.xensource.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [Xen-devel] [PATCH] hvm: Correct RTC time offset update error due to tm->tm_year annie li Wed Feb 22 07:00:56 2012



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
[EMAIL PROTECTED]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[EMAIL PROTECTED]
http://lists.xen.org/xen-devel