diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-11-10 07:48:25 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-11-10 07:48:25 +0000 |
commit | e204ff2937ebee73886f02da0e3e4e801612ded1 (patch) | |
tree | 4ec38b8ee476034a70aa9cf22c46be2115c9e704 /tools/libfsimage | |
parent | d53bdf0f834e2b62616f6925948d1ffc2275977c (diff) | |
download | xen-e204ff2937ebee73886f02da0e3e4e801612ded1.tar.gz xen-e204ff2937ebee73886f02da0e3e4e801612ded1.tar.bz2 xen-e204ff2937ebee73886f02da0e3e4e801612ded1.zip |
[LIBFSIMAGE] Fix printf-format warning on x86/64.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
Diffstat (limited to 'tools/libfsimage')
-rw-r--r-- | tools/libfsimage/ext2fs-lib/ext2fs-lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libfsimage/ext2fs-lib/ext2fs-lib.c b/tools/libfsimage/ext2fs-lib/ext2fs-lib.c index ef7cec521c..37a3ea5c5a 100644 --- a/tools/libfsimage/ext2fs-lib/ext2fs-lib.c +++ b/tools/libfsimage/ext2fs-lib/ext2fs-lib.c @@ -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 *name) 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) |