WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [LIBFSIMAGE] Fix printf-format warning on

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [LIBFSIMAGE] Fix printf-format warning on x86/64.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Nov 2006 09:01:40 +0000
Delivery-date: Fri, 10 Nov 2006 01:01:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [LIBFSIMAGE] Fix printf-format warning on x86/64., Xen patchbot-unstable <=