summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-06-27 11:27:18 -0700
committerArtem Bityutskiy <dedekind1@gmail.com>2011-06-29 08:42:37 +0300
commit59423eba6af3dbac53a1687e9f3cb31cfaad0680 (patch)
tree4a275cf249270935c26aee9c3a09358bd5638239 /tests
parentea5af28f1531e478126ffe4a5dc9ac7d1de7acd3 (diff)
mtd-tests: checkfs: fix size_t related warning
Depending on your compiler, size_t may or may not be long unsigned int. Use printf's %zu format to clarify. Warning message: checkfs.c:524:28: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int' Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/checkfs/checkfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkfs/checkfs.c b/tests/checkfs/checkfs.c
index 8e74da8..0e67626 100644
--- a/tests/checkfs/checkfs.c
+++ b/tests/checkfs/checkfs.c
@@ -520,7 +520,7 @@ void processCmdLine(int argc, char **argv)
FileSizeMax = (float)atoi(argv[++cnt]);
if(FileSizeMax > (MAX_INTS_ALLOW*sizeof(int)))
{
- printf("Max file size allowed is %lu.\n",
+ printf("Max file size allowed is %zu.\n",
MAX_INTS_ALLOW*sizeof(int));
exit(0);
}