In vnode_pager_generic_putpages(), change the printf format specifier

to long and explicitly cast field dirty of struct vm_page to unsigned
long. When PAGE_SIZE is 32K, this field is actually unsigned long.
This commit is contained in:
marcel 2003-08-29 00:16:30 +00:00
parent 2b659acaec
commit 825aac70a6

View File

@ -991,8 +991,8 @@ vnode_pager_generic_putpages(vp, m, bytecount, flags, rtvals)
rtvals[i] = VM_PAGER_AGAIN; rtvals[i] = VM_PAGER_AGAIN;
if ((int) m[0]->pindex < 0) { if ((int) m[0]->pindex < 0) {
printf("vnode_pager_putpages: attempt to write meta-data!!! -- 0x%lx(%x)\n", printf("vnode_pager_putpages: attempt to write meta-data!!! -- 0x%lx(%lx)\n",
(long)m[0]->pindex, m[0]->dirty); (long)m[0]->pindex, (u_long)m[0]->dirty);
rtvals[0] = VM_PAGER_BAD; rtvals[0] = VM_PAGER_BAD;
return VM_PAGER_BAD; return VM_PAGER_BAD;
} }