Print more useful information about the transfer that trigger the assertion.

Other data is available with ddb command 'show pginfo'.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2013-10-21 16:17:46 +00:00
parent d8bb357d2c
commit 44f3b9c787
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256847

View File

@ -2070,7 +2070,8 @@ sendfile_readpage(vm_object_t obj, struct vnode *vp, int nd,
}
KASSERT(error != 0 || (m->wire_count > 0 &&
vm_page_is_valid(m, off & PAGE_MASK, xfsize)),
("wrong page state m %p", m));
("wrong page state m %p off %#jx xfsize %d", m, (uintmax_t)off,
xfsize));
VM_OBJECT_WUNLOCK(obj);
return (error);
}