summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-08-28 19:58:11 +0000
committermarcel <marcel@FreeBSD.org>2003-08-28 19:58:11 +0000
commitb121bea1f9c5f9e0e753f7dee468432cb3832efa (patch)
tree90b0477f38fcbe2989c840fc6375339997028b39 /sys/kern/vfs_bio.c
parentd4cb2be83f08b1b4eb2c9d16e23070a949b1b757 (diff)
downloadFreeBSD-src-b121bea1f9c5f9e0e753f7dee468432cb3832efa.zip
FreeBSD-src-b121bea1f9c5f9e0e753f7dee468432cb3832efa.tar.gz
In bufdone(), change the format specifier for m->valid and m->dirty to
a long type and explicitly cast m->valid and m->dirty to unsigned long. When PAGE_SIZE is 32K, these fields are in fact unsigned long.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 77f47cb..fa6ee58 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -3205,8 +3205,9 @@ bufdone(struct buf *bp)
printf(" VDEV, lblkno: %jd, flags: 0x%x, npages: %d\n",
(intmax_t) bp->b_lblkno,
bp->b_flags, bp->b_npages);
- printf(" valid: 0x%x, dirty: 0x%x, wired: %d\n",
- m->valid, m->dirty, m->wire_count);
+ printf(" valid: 0x%lx, dirty: 0x%lx, wired: %d\n",
+ (u_long)m->valid, (u_long)m->dirty,
+ m->wire_count);
panic("biodone: page busy < 0\n");
}
vm_page_io_finish(m);
OpenPOWER on IntegriCloud