diff options
| author | isoux <isa@isoux.org> | 2026-02-20 19:54:35 +0000 |
|---|---|---|
| committer | Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> | 2026-03-16 22:00:44 +0000 |
| commit | 83d7a4966f08f34a699da649bd4f714b450df39b (patch) | |
| tree | 36a2c6fe56b7a24057c6ff91945fd6aa6ab616a1 | |
| parent | aa15df4597053c0e95a15b2a7036296999cd562a (diff) | |
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>
Reviewed by: kib, pouria
Pull Request: https://github.com/freebsd/freebsd-src/pull/2038
| -rw-r--r-- | sys/vm/vm_fault.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index addda72e2b56..88438320a17a 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -509,7 +509,10 @@ vm_fault_populate_cleanup(vm_object_t object, vm_pindex_t first, vm_page_deactivate(m); vm_page_xunbusy(m); } - KASSERT(pages.index == last, ("%s: pindex mismatch", __func__)); + KASSERT(pages.index == last, + ("%s: Object %p first %#jx last %#jx index %#jx", + __func__, object, (uintmax_t)first, (uintmax_t)last, + (uintmax_t)pages.index)); } static enum fault_status |
