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:
parent
2b659acaec
commit
825aac70a6
@ -991,8 +991,8 @@ vnode_pager_generic_putpages(vp, m, bytecount, flags, rtvals)
|
||||
rtvals[i] = VM_PAGER_AGAIN;
|
||||
|
||||
if ((int) m[0]->pindex < 0) {
|
||||
printf("vnode_pager_putpages: attempt to write meta-data!!! -- 0x%lx(%x)\n",
|
||||
(long)m[0]->pindex, m[0]->dirty);
|
||||
printf("vnode_pager_putpages: attempt to write meta-data!!! -- 0x%lx(%lx)\n",
|
||||
(long)m[0]->pindex, (u_long)m[0]->dirty);
|
||||
rtvals[0] = VM_PAGER_BAD;
|
||||
return VM_PAGER_BAD;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user