Stefano Stabellini
2010-May-06 13:20 UTC
[Xen-devel] [PATCH] fix warning compiling xl_cmdimpl.c
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;
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
Keir Fraser
2010-May-06 15:02 UTC
Re: [Xen-devel] [PATCH] fix warning compiling xl_cmdimpl.c
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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel