From 56840a198a70604ece50d9d727cebcc28930ab4c Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Wed, 12 Sep 2012 16:38:35 +0200 Subject: mkfs.jffs2: correct some warnings using PRIdoff_t When compiled with WITHOUT_LARGEFILE, there was warnings like that: warning: format '%9llu' expects type 'long long unsigned int', but argument 3 has type '__off_t' Using PRIdoff_t corrects that. Signed-off-by: Richard Genoud Signed-off-by: Artem Bityutskiy --- mkfs.jffs2.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mkfs.jffs2.c b/mkfs.jffs2.c index d170a04..a33a0d6 100644 --- a/mkfs.jffs2.c +++ b/mkfs.jffs2.c @@ -1233,7 +1233,7 @@ static void recursive_populate_directory(struct filesystem_entry *dir) } else switch (e->sb.st_mode & S_IFMT) { case S_IFDIR: if (verbose) { - printf("\td %04o %9" PRIu64 " %5d:%-3d %s\n", + printf("\td %04o %9" PRIdoff_t " %5d:%-3d %s\n", e->sb.st_mode & ~S_IFMT, e->sb.st_size, (int) (e->sb.st_uid), (int) (e->sb.st_gid), e->name); @@ -1243,7 +1243,7 @@ static void recursive_populate_directory(struct filesystem_entry *dir) break; case S_IFSOCK: if (verbose) { - printf("\ts %04o %9" PRIu64 " %5d:%-3d %s\n", + printf("\ts %04o %9" PRIdoff_t " %5d:%-3d %s\n", e->sb.st_mode & ~S_IFMT, e->sb.st_size, (int) e->sb.st_uid, (int) e->sb.st_gid, e->name); } @@ -1252,7 +1252,7 @@ static void recursive_populate_directory(struct filesystem_entry *dir) break; case S_IFIFO: if (verbose) { - printf("\tp %04o %9" PRIu64 " %5d:%-3d %s\n", + printf("\tp %04o %9" PRIdoff_t " %5d:%-3d %s\n", e->sb.st_mode & ~S_IFMT, e->sb.st_size, (int) e->sb.st_uid, (int) e->sb.st_gid, e->name); } @@ -1281,7 +1281,7 @@ static void recursive_populate_directory(struct filesystem_entry *dir) break; case S_IFLNK: if (verbose) { - printf("\tl %04o %9" PRIu64 " %5d:%-3d %s -> %s\n", + printf("\tl %04o %9" PRIdoff_t " %5d:%-3d %s -> %s\n", e->sb.st_mode & ~S_IFMT, e->sb.st_size, (int) e->sb.st_uid, (int) e->sb.st_gid, e->name, e->link); @@ -1293,7 +1293,7 @@ static void recursive_populate_directory(struct filesystem_entry *dir) wrote = write_regular_file(e); write_xattr_entry(e); if (verbose) { - printf("\tf %04o %9" PRIu64 " (%9u) %5d:%-3d %s\n", + printf("\tf %04o %9" PRIdoff_t " (%9u) %5d:%-3d %s\n", e->sb.st_mode & ~S_IFMT, e->sb.st_size, wrote, (int) e->sb.st_uid, (int) e->sb.st_gid, e->name); } -- cgit v1.2.3