]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
libxl: fix build on 32-bit
authorIan Campbell <ian.campbell@citrix.com>
Thu, 21 Feb 2013 10:59:51 +0000 (10:59 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 21 Feb 2013 11:44:22 +0000 (11:44 +0000)
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@citrix.com>
tools/libxl/libxl_dm.c

index c4ca11eb90deb9560849a8d338efea0ce2405449..a8a36d7fa1e697a99bd15521a1ca879050794047 100644 (file)
@@ -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;