summaryrefslogtreecommitdiff
path: root/tests/ubi-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ubi-tests')
-rw-r--r--tests/ubi-tests/io_paral.c4
-rw-r--r--tests/ubi-tests/io_read.c2
-rw-r--r--tests/ubi-tests/io_update.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/ubi-tests/io_paral.c b/tests/ubi-tests/io_paral.c
index 4040b3e..b0884fe 100644
--- a/tests/ubi-tests/io_paral.c
+++ b/tests/ubi-tests/io_paral.c
@@ -207,7 +207,7 @@ static void *write_thread(void *ptr)
ret = pwrite(fd, wbuf, dev_info.leb_size, offs);
if (ret != dev_info.leb_size) {
failed("pwrite");
- errorm("cannot write %d bytes to offs %lld, wrote %d",
+ errorm("cannot write %d bytes to offs %ld, wrote %d",
dev_info.leb_size, offs, ret);
break;
}
@@ -216,7 +216,7 @@ static void *write_thread(void *ptr)
ret = pread(fd, rbuf, dev_info.leb_size, offs);
if (ret != dev_info.leb_size) {
failed("read");
- errorm("failed to read %d bytes at offset %d "
+ errorm("failed to read %d bytes at offset %ld "
"of volume %d", dev_info.leb_size, offs,
vol_id);
break;
diff --git a/tests/ubi-tests/io_read.c b/tests/ubi-tests/io_read.c
index f944a86..a6cc8f5 100644
--- a/tests/ubi-tests/io_read.c
+++ b/tests/ubi-tests/io_read.c
@@ -233,7 +233,7 @@ static int test_read2(const struct ubi_vol_info *vol_info, int len)
continue;
if (test_read3(vol_info, len, offsets[i])) {
- errorm("offset = %d", offsets[i]);
+ errorm("offset = %ld", offsets[i]);
return -1;
}
}
diff --git a/tests/ubi-tests/io_update.c b/tests/ubi-tests/io_update.c
index f48df1d..d093da5 100644
--- a/tests/ubi-tests/io_update.c
+++ b/tests/ubi-tests/io_update.c
@@ -189,11 +189,11 @@ static int test_update1(struct ubi_vol_info *vol_info, int leb_change)
ret = read(fd, buf1, test_len);
if (ret < 0) {
failed("read");
- errorm("failed to read %d bytes", test_len);
+ errorm("failed to read %lld bytes", test_len);
goto close;
}
if (ret != test_len) {
- errorm("failed to read %d bytes, read %d", test_len, ret);
+ errorm("failed to read %lld bytes, read %d", test_len, ret);
goto close;
}
if (memcmp(buf, buf1, test_len)) {