git: 0ee1cd6da960 - main - vm_page.h: tweak page-busied assertion macros

From: Jason A. Harmening <jah_at_FreeBSD.org>
Date: Sun, 24 Dec 2023 05:39:37 UTC
The branch main has been updated by jah:

URL: https://cgit.FreeBSD.org/src/commit/?id=0ee1cd6da960a7a3fedbba82b37d9c67494d2394

commit 0ee1cd6da960a7a3fedbba82b37d9c67494d2394
Author:     Jason A. Harmening <jah@FreeBSD.org>
AuthorDate: 2023-12-24 05:20:13 +0000
Commit:     Jason A. Harmening <jah@FreeBSD.org>
CommitDate: 2023-12-24 05:20:13 +0000

    vm_page.h: tweak page-busied assertion macros
    
    Fix incorrect macro name and include the value of curthread in the
    panic message where relevant.
---
 sys/vm/vm_page.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index e6bff3334d39..37cb1374b9f6 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -730,9 +730,9 @@ void vm_page_lock_assert_KBI(vm_page_t m, int a, const char *file, int line);
 #define	vm_page_assert_unbusied(m)					\
 	KASSERT((vm_page_busy_fetch(m) & ~VPB_BIT_WAITERS) !=		\
 	    VPB_CURTHREAD_EXCLUSIVE,					\
-	    ("vm_page_assert_xbusied: page %p busy_lock %#x owned"	\
-            " by me @ %s:%d",						\
-	    (m), (m)->busy_lock, __FILE__, __LINE__));			\
+	    ("vm_page_assert_unbusied: page %p busy_lock %#x owned"	\
+	     " by me (%p) @ %s:%d",					\
+	    (m), (m)->busy_lock, curthread, __FILE__, __LINE__));	\
 
 #define	vm_page_assert_xbusied_unchecked(m) do {			\
 	KASSERT(vm_page_xbusied(m),					\
@@ -744,8 +744,8 @@ void vm_page_lock_assert_KBI(vm_page_t m, int a, const char *file, int line);
 	KASSERT((vm_page_busy_fetch(m) & ~VPB_BIT_WAITERS) ==		\
 	    VPB_CURTHREAD_EXCLUSIVE,					\
 	    ("vm_page_assert_xbusied: page %p busy_lock %#x not owned"	\
-            " by me @ %s:%d",						\
-	    (m), (m)->busy_lock, __FILE__, __LINE__));			\
+	     " by me (%p) @ %s:%d",					\
+	    (m), (m)->busy_lock, curthread, __FILE__, __LINE__));	\
 } while (0)
 
 #define	vm_page_busied(m)						\