|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libxl: fix build on 32-bit
commit e2e2c9d51d2424ca47675cad86597feec33f4bc3
Author: Ian Campbell <ian.campbell@xxxxxxxxxx>
AuthorDate: Thu Feb 21 10:59:51 2013 +0000
Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CommitDate: Thu Feb 21 11:44:22 2013 +0000
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;
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |