[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] ext2fs-lib.c - 64/32 bit issues
Hi, This won't compile on a 64 bit system. Another victim of long long and printf. I haven't noticed anything about it on the mailing list, so I believe that the attached patch may resolve this. Signed-off-by: Ben Thomas (ben@xxxxxxxxxxxxxxx) -- ------------------------------------------------------------------------ Ben Thomas Virtual Iron Software bthomas@xxxxxxxxxxxxxxx Tower 1, Floor 2 978-849-1214 900 Chelmsford Street Lowell, MA 01851 diff -r 452010ddef24 tools/libfsimage/ext2fs-lib/ext2fs-lib.c --- a/tools/libfsimage/ext2fs-lib/ext2fs-lib.c Thu Nov 09 18:14:53 2006 +0000 +++ b/tools/libfsimage/ext2fs-lib/ext2fs-lib.c Thu Nov 09 17:45:07 2006 -0500 @@ -24,6 +24,7 @@ #include <fsimage_plugin.h> #include <ext2fs/ext2fs.h> #include <errno.h> +#include <inttypes.h> static int ext2lib_mount(fsi_t *fsi, const char *name) @@ -34,7 +35,7 @@ ext2lib_mount(fsi_t *fsi, const char *na uint64_t offset = fsip_fs_offset(fsi); if (offset) - snprintf(opts, 29, "offset=%lld", offset); + snprintf(opts, 29, "offset=%" PRId64, offset); fs = malloc(sizeof (*fs)); if (fs == NULL) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |