summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshok Bhat <ashok.bhat@arm.com>2013-12-10 12:07:01 +0000
committerVishal Bhoj <vishal.bhoj@linaro.org>2014-02-06 10:37:34 +0000
commit8359ac2ee1d7cc3cc970219aff464c3386bb64f3 (patch)
treef4bfa327621678fe67e4b66b8be67609db494154
parent8c905504491929c634c92efc72490e77e2d46e47 (diff)
downloadcore-8359ac2ee1d7cc3cc970219aff464c3386bb64f3.tar.gz
libion: Use %zu for size_t
Change-Id: If92fc31ab676a569530c21e655a1b5b451f5c5e5 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> (cherry picked from commit c0f3f805fde1ca33e0941fae9327284806943523)
-rw-r--r--libion/ion_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libion/ion_test.c b/libion/ion_test.c
index d2c37ca29..8179b5728 100644
--- a/libion/ion_test.c
+++ b/libion/ion_test.c
@@ -73,7 +73,7 @@ void ion_map_test()
}
for (i = 0; i < len; i++)
if (ptr[i] != (unsigned char)i)
- printf("%s failed wrote %d read %d from mapped "
+ printf("%s failed wrote %zu read %d from mapped "
"memory\n", __func__, i, ptr[i]);
/* clean up properly */
ret = ion_free(fd, handle);
@@ -257,7 +257,7 @@ int main(int argc, char* argv[]) {
break;
}
}
- printf("test %d, len %u, align %u, map_flags %d, prot %d, heap_mask %d,"
+ printf("test %d, len %zu, align %zu, map_flags %d, prot %d, heap_mask %d,"
" alloc_flags %d\n", test, len, align, map_flags, prot,
heap_mask, alloc_flags);
switch (test) {