From: Ben Thomas Subject: [PATCH] ext2fs-lib.c - 64/32 bit issues Date: Thu, 09 Nov 2006 17:54:37 -0500 Message-ID: <4553B1AD.9000002@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080706050806070403030507" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------080706050806070403030507 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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@virtualiron.com) -- ------------------------------------------------------------------------ Ben Thomas Virtual Iron Software bthomas@virtualiron.com Tower 1, Floor 2 978-849-1214 900 Chelmsford Street Lowell, MA 01851 --------------080706050806070403030507 Content-Type: text/x-patch; name="lf.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lf.patch" 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 #include #include +#include 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) --------------080706050806070403030507 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------080706050806070403030507--