direct-io.hg

changeset 12346:b4e7365d451d

[LIBFSIMAGE] Fix printf-format warning on x86/64.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Nov 10 07:48:25 2006 +0000 (2006-11-10)
parents 2e35cf028ff0
children 357127ca8bf2
files tools/libfsimage/ext2fs-lib/ext2fs-lib.c
line diff
     1.1 --- a/tools/libfsimage/ext2fs-lib/ext2fs-lib.c	Thu Nov 09 15:43:24 2006 +0000
     1.2 +++ b/tools/libfsimage/ext2fs-lib/ext2fs-lib.c	Fri Nov 10 07:48:25 2006 +0000
     1.3 @@ -24,6 +24,7 @@
     1.4  #include <fsimage_plugin.h>
     1.5  #include <ext2fs/ext2fs.h>
     1.6  #include <errno.h>
     1.7 +#include <inttypes.h>
     1.8  
     1.9  static int
    1.10  ext2lib_mount(fsi_t *fsi, const char *name)
    1.11 @@ -34,7 +35,7 @@ ext2lib_mount(fsi_t *fsi, const char *na
    1.12  	uint64_t offset = fsip_fs_offset(fsi);
    1.13  
    1.14  	if (offset)
    1.15 -		snprintf(opts, 29, "offset=%lld", offset);
    1.16 +		snprintf(opts, 29, "offset=%" PRId64, offset);
    1.17  
    1.18  	fs = malloc(sizeof (*fs));
    1.19  	if (fs == NULL)