Skip to content

Commit c78c1ea

Browse files
committed
vm_fault: expand KASSERT message in vm_fault_populate_cleanup
Include index values and object pointer in the diagnostic to improve debugging of pindex mismatches. No functional change. Signed-off-by: Isa Isoux <isa@isoux.org>
1 parent 49fa007 commit c78c1ea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sys/vm/vm_fault.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,13 @@ vm_fault_populate_cleanup(vm_object_t object, vm_pindex_t first,
509509
vm_page_deactivate(m);
510510
vm_page_xunbusy(m);
511511
}
512-
KASSERT(pages.index == last, ("%s: pindex mismatch", __func__));
512+
KASSERT(pages.index == last,
513+
("%s: pindex mismatch index=%jx last=%jx first=%jx object=%p",
514+
__func__,
515+
(uintmax_t)pages.index,
516+
(uintmax_t)last,
517+
(uintmax_t)first,
518+
object));
513519
}
514520

515521
static enum fault_status

0 commit comments

Comments
 (0)