summaryrefslogtreecommitdiffstats
path: root/sys/fs/specfs
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-08-28 01:52:14 +0000
committermarcel <marcel@FreeBSD.org>2003-08-28 01:52:14 +0000
commit3a01d6b42ea551b4fd0e4c57177c70e390b38547 (patch)
tree76de3db5beaa931deb8d66545221833a86db412b /sys/fs/specfs
parentc496ddf8e18fbe14bd2b59918fbef3a23a93eb00 (diff)
downloadFreeBSD-src-3a01d6b42ea551b4fd0e4c57177c70e390b38547.zip
FreeBSD-src-3a01d6b42ea551b4fd0e4c57177c70e390b38547.tar.gz
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.
Diffstat (limited to 'sys/fs/specfs')
-rw-r--r--sys/fs/specfs/spec_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index d947b9b..f13a36a 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -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);
OpenPOWER on IntegriCloud