fix warning compiling xl_cmdimpl.c
PATCH 1/1 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 <[email protected]>
---
tools/libxl/xl_cmdimpl.c +2 -2
@@ -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 ;
tools/libxl/xl_cmdimpl.c line 2803
Quoted 2 lines · Stefano Stabellini
tools/libxl/xl_cmdimpl.c +2
-0+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