[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] libxl: fix build on 32-bit
aab4d1b266ce "libxl: Add qxl vga interface support for upstream qemu" introduced: libxl_dm.c: In function âlibxl__build_device_model_args_newâ: libxl_dm.c:449: error: format â%luâ expects type âlong unsigned intâ, but argument 3 has type âlong long unsigned intâ libxl_dm.c:451: error: format â%luâ expects type âlong unsigned intâ, but argument 3 has type âlong long unsigned intâ on arm32 and x86_32. Use the inttypes.h PRId64 macro. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- tools/libxl/libxl_dm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index c4ca11e..a8a36d7 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -446,9 +446,9 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc, flexarray_vappend(dm_args, "-vga", "qxl", NULL); if (b_info->video_memkb) { flexarray_vappend(dm_args, "-global", - GCSPRINTF("qxl-vga.vram_size_mb=%lu", + GCSPRINTF("qxl-vga.vram_size_mb=%"PRIu64, (b_info->video_memkb/2/1024)), "-global", - GCSPRINTF("qxl-vga.ram_size_mb=%lu", + GCSPRINTF("qxl-vga.ram_size_mb=%"PRIu64, (b_info->video_memkb/2/1024)), NULL); } break; -- 1.7.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |