* a compile error?
@ 2010-06-10 8:27 Li, Xin
2010-06-10 9:20 ` Keir Fraser
0 siblings, 1 reply; 2+ messages in thread
From: Li, Xin @ 2010-06-10 8:27 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
I have been seeing a compile error with gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) for several days:
rtc.c: In function `rtc_update_second':
rtc.c:294: warning: long long unsigned int format, long unsigned int arg (arg 5)
make[5]: *** [rtc.o] Error 1
make[5]: Leaving directory `/home/xin/xen-unstable.hg/xen/arch/x86/hvm'
make[4]: *** [hvm/built_in.o] Error 2
make[4]: Leaving directory `/home/xin/xen-unstable.hg/xen/arch/x86'
make[3]: *** [/home/xin/xen-unstable.hg/xen/arch/x86/built_in.o] Error 2
make[3]: Leaving directory `/home/xin/xen-unstable.hg/xen/arch/x86'
make[2]: *** [/home/xin/xen-unstable.hg/xen/xen] Error 2
make[2]: Leaving directory `/home/xin/xen-unstable.hg/xen'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/xin/xen-unstable.hg/xen'
make: *** [install-xen] Error 2
the culprit snip is:
if ( unlikely(now - s->next_second_time > SECONDS(86400)) )
{
dprintk(XENLOG_WARNING, "HVM RTC: dom %u skipping %llu seconds\n",
^^^^^^^^^
vrtc_domain(s)->domain_id,
(now - s->next_second_time) / SYSTEM_TIME_HZ);
s->next_second_time = now;
}
Should we use PRIu64 here? I don't know if people using newer gcc don't see this as nobody complained.
Thanks!
-Xin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: a compile error?
2010-06-10 8:27 a compile error? Li, Xin
@ 2010-06-10 9:20 ` Keir Fraser
0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2010-06-10 9:20 UTC (permalink / raw)
To: Li, Xin, xen-devel@lists.xensource.com
On 10/06/2010 09:27, "Li, Xin" <xin.li@intel.com> wrote:
> the culprit snip is:
>
> if ( unlikely(now - s->next_second_time > SECONDS(86400)) )
> {
> dprintk(XENLOG_WARNING, "HVM RTC: dom %u skipping %llu seconds\n",
> ^^^^^^^^^
> vrtc_domain(s)->domain_id,
> (now - s->next_second_time) / SYSTEM_TIME_HZ);
> s->next_second_time = now;
> }
>
>
> Should we use PRIu64 here? I don't know if people using newer gcc don't see
> this as nobody complained.
Fixed by xen-unstable:21590.
Thanks,
Keir
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-10 9:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-10 8:27 a compile error? Li, Xin
2010-06-10 9:20 ` Keir Fraser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).