From 55224307bf9b3e4231daca9ad4c4e3b6d734869b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 23 Feb 2023 18:31:23 +0100 Subject: fix: printf related warnings --- src/user/app/iochk/iochk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/user/app/iochk') 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; -- cgit v1.2.3