The valid field in struct vm_page can be of type unsigned long when

32K pages are selected. In spec_getpages() change the printf format
specifier and add an explicit cast so that we always print the field
as a long type.
This commit is contained in:
Marcel Moolenaar 2003-08-28 01:52:14 +00:00
parent 7637e5854b
commit fccf82902d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119514

View File

@ -828,8 +828,8 @@ spec_getpages(ap)
"spec_getpages:(%s) I/O read failure: (error=%d) bp %p vp %p\n",
devtoname(bp->b_dev), error, bp, bp->b_vp);
printf(
" size: %d, resid: %ld, a_count: %d, valid: 0x%x\n",
size, bp->b_resid, ap->a_count, m->valid);
" size: %d, resid: %ld, a_count: %d, valid: 0x%lx\n",
size, bp->b_resid, ap->a_count, (u_long)m->valid);
printf(
" nread: %d, reqpage: %d, pindex: %lu, pcount: %d\n",
nread, ap->a_reqpage, (u_long)m->pindex, pcount);