[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [LIBFSIMAGE] Fix printf-format warning on x86/64.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID b4e7365d451de6ffa84f24cfc29d59fea9aa50be
# Parent  2e35cf028ff01f9cf76698b15a2104a9bebf2586
[LIBFSIMAGE] Fix printf-format warning on x86/64.
Signed-off-by: Ben Thomas <ben@xxxxxxxxxxxxxxx>
---
 tools/libfsimage/ext2fs-lib/ext2fs-lib.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 2e35cf028ff0 -r b4e7365d451d tools/libfsimage/ext2fs-lib/ext2fs-lib.c
--- a/tools/libfsimage/ext2fs-lib/ext2fs-lib.c  Thu Nov 09 15:43:24 2006 +0000
+++ b/tools/libfsimage/ext2fs-lib/ext2fs-lib.c  Fri Nov 10 07:48:25 2006 +0000
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.