summaryrefslogtreecommitdiff
path: root/src/user/app/iochk/iochk.c
diff options
context:
space:
mode:
authordzwdz2023-02-23 18:31:23 +0100
committerdzwdz2023-02-23 18:31:23 +0100
commit55224307bf9b3e4231daca9ad4c4e3b6d734869b (patch)
tree18e0e3cc897efe60c96d3ee2ed02cb60a4571611 /src/user/app/iochk/iochk.c
parentc9daa8909313b020df57605d0bd50ac48b208d58 (diff)
fix: printf related warnings
Diffstat (limited to 'src/user/app/iochk/iochk.c')
-rw-r--r--src/user/app/iochk/iochk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/user/app/iochk/iochk.c b/src/user/app/iochk/iochk.c
index 9703919..0850821 100644
--- a/src/user/app/iochk/iochk.c
+++ b/src/user/app/iochk/iochk.c
@@ -30,7 +30,7 @@ void check(hid_t h) {
long offlast = 0;
long retlast = _sys_read(h, buflast, buflen, offlast);
if (retlast < 0) {
- eprintf("error %d when reading at offset %d", retlast, offlast);
+ eprintf("error %ld when reading at offset %ld", retlast, offlast);
goto end;
}
@@ -43,14 +43,14 @@ void check(hid_t h) {
long retcur = _sys_read(h, bufcur, buflen, offcur);
if (retcur < 0) {
- eprintf("error %d when reading at offset %d", retlast, offcur);
+ eprintf("error %ld when reading at offset %ld", retlast, offcur);
break;
}
if (retcur < retlast + offlast - offcur) {
- verbosef("warn: unexpected ret %d < %d + %d - %d\n", retcur, retlast, offlast, offcur);
+ verbosef("warn: unexpected ret %ld < %ld + %ld - %ld\n", retcur, retlast, offlast, offcur);
}
if (memcmp(buflast + diff, bufcur, retlast - diff)) {
- eprintf("unconsistent read from offsets %d and %d", offlast, offcur);
+ eprintf("inconsistent read from offsets %ld and %ld", offlast, offcur);
}
offlast = offcur;