summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-30 12:37:34 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-30 12:37:34 +0100
commit40ebdad50ff3e6dbe46e0ad441e3db417aa5e13c (patch)
tree9700c477e0a3cb53ba979106e5ef5953691494da
parentb47d1eeb490aa518b0bafb0fe5d968e4ef313e60 (diff)
Use %zd instead of %ld for size_t
-rw-r--r--tools/dfutool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dfutool.c b/tools/dfutool.c
index cab39feb..055de25f 100644
--- a/tools/dfutool.c
+++ b/tools/dfutool.c
@@ -359,7 +359,7 @@ static void cmd_verify(char *device, int argc, char **argv)
}
printf("Filename\t%s\n", basename(filename));
- printf("Filesize\t%ld\n", size);
+ printf("Filesize\t%zd\n", size);
crc = crc32_init();
for (i = 0; i < size - 4; i++)
@@ -463,7 +463,7 @@ static void cmd_upgrade(char *device, int argc, char **argv)
dwCRC = le32_to_cpu(suffix.dwCRC);
printf("Filename\t%s\n", basename(filename));
- printf("Filesize\t%ld\n", filesize);
+ printf("Filesize\t%zd\n", filesize);
crc = crc32_init();
for (i = 0; i < filesize - 4; i++)