summaryrefslogtreecommitdiff
path: root/nand-utils/nandtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'nand-utils/nandtest.c')
-rw-r--r--nand-utils/nandtest.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/nand-utils/nandtest.c b/nand-utils/nandtest.c
index 14dfbff..cac0dde 100644
--- a/nand-utils/nandtest.c
+++ b/nand-utils/nandtest.c
@@ -266,17 +266,20 @@ int main(int argc, char **argv)
length = mem_size;
if (offset % meminfo.erasesize) {
- fprintf(stderr, "Offset %llx not multiple of erase size %x\n",
+ fprintf(stderr, "Offset %" PRIx64
+ " not multiple of erase size %x\n",
offset, meminfo.erasesize);
exit(1);
}
if (length % meminfo.erasesize) {
- fprintf(stderr, "Length %llx not multiple of erase size %x\n",
+ fprintf(stderr, "Length %" PRIx64
+ " not multiple of erase size %x\n",
length, meminfo.erasesize);
exit(1);
}
if (length + offset > mem_size) {
- fprintf(stderr, "Length %llx + offset %llx exceeds device size %llx\n",
+ fprintf(stderr, "Length %" PRIx64 " + offset %" PRIx64
+ " exceeds device size %" PRIx64 "\n",
length, offset, mem_size);
exit(1);
}