kern: fix pprint on invalid address at syspread

This commit is contained in:
Giacomo Tesio 2017-12-10 23:33:32 +01:00
parent b73c2bce14
commit 799f99a40f

View File

@ -612,7 +612,7 @@ syspread(int fd, void *p, long n, int64_t off)
* to read the buffer must be nil
*/
InvalidAddress:
pprint("trap: invalid address %#p/%ld in pread pc=%#P\n", p, n, userpc(nil));
pprint("trap: invalid address %#p/%lld in pread pc=%#P\n", p, n, userpc(nil));
postnote(up, 1, "sys: bad address in pread", NDebug);
error(Ebadarg);
}