summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2012-09-12 16:38:35 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-09-25 18:06:54 +0300
commit56840a198a70604ece50d9d727cebcc28930ab4c (patch)
tree01d55ca602ebcd88f09a3fe67592062bf7f0db25
parentf3f3a208048eac5f8b5752a17ebcd44db9230fd8 (diff)
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 <richard.genoud@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rw-r--r--mkfs.jffs2.c10
1 files 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);
}