[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Use PRIu64 for printing uint64_t
dup :) On Thu, 6 May 2010, Ian Jackson wrote: > Properly use PRIu64 to print a uint64_t. Un-breaks the build on > modern compilers. > > Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> > > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c > index 46da813..8ee421a 100644 > --- a/tools/libxl/xl_cmdimpl.c > +++ b/tools/libxl/xl_cmdimpl.c > @@ -2799,8 +2799,8 @@ static void output_physinfo(void) > vinfo = libxl_get_version_info(&ctx); > if (vinfo) { > i = (1 << 20) / vinfo->pagesize; > - printf("total_memory : %lu\n", info.total_pages / i); > - printf("free_memory : %lu\n", info.free_pages / i); > + printf("total_memory : %"PRIu64"\n", info.total_pages / i); > + printf("free_memory : %"PRIu64"\n", info.free_pages / i); > } > > return; > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxxxxxxxx > http://lists.xensource.com/xen-devel > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |