diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-29 00:16:30 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-29 00:16:30 +0000 |
commit | d35fa485d72265af9def41756edf1ae8765ed3b9 (patch) | |
tree | 44b528d0902647ec757e76e3e69448a5fc10cd5e /sys | |
parent | de18724542a66185b28e7e95cd7ca7c84fe43df2 (diff) | |
download | FreeBSD-src-d35fa485d72265af9def41756edf1ae8765ed3b9.zip FreeBSD-src-d35fa485d72265af9def41756edf1ae8765ed3b9.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vnode_pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 4ddc6bb..2e60cef 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -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; } |