* [PATCH] fix warning compiling xl_cmdimpl.c
@ 2010-05-06 13:20 Stefano Stabellini
2010-05-06 15:02 ` Keir Fraser
0 siblings, 1 reply; 2+ messages in thread
From: Stefano Stabellini @ 2010-05-06 13:20 UTC (permalink / raw)
To: xen-devel
Hi all,
this patch fixes a warning compiling xl_cmdimpl.c due to the size of
total_pages and free_pages.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
diff -r ccae861f52f7 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c Thu May 06 11:59:55 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c Thu May 06 14:17:16 2010 +0100
@@ -2799,8 +2799,8 @@
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 : %"PRIx64"\n", info.total_pages / i);
+ printf("free_memory : %"PRIx64"\n", info.free_pages / i);
}
return;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fix warning compiling xl_cmdimpl.c
2010-05-06 13:20 [PATCH] fix warning compiling xl_cmdimpl.c Stefano Stabellini
@ 2010-05-06 15:02 ` Keir Fraser
0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2010-05-06 15:02 UTC (permalink / raw)
To: Stefano Stabellini, xen-devel@lists.xensource.com
On 06/05/2010 14:20, "Stefano Stabellini" <Stefano.Stabellini@eu.citrix.com>
wrote:
> + printf("total_memory : %"PRIx64"\n", info.total_pages / i);
> + printf("free_memory : %"PRIx64"\n", info.free_pages / i);
ITYM PRIu64. That's what I changed it to anyway.
-- Keir
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-06 15:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 13:20 [PATCH] fix warning compiling xl_cmdimpl.c Stefano Stabellini
2010-05-06 15:02 ` 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).