git: 0ad45b82d7be - stable/14 - pseudofs: enhance KASSERT with more information

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Thu, 12 Jun 2025 04:48:35 UTC
The branch stable/14 has been updated by kib:

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

commit 0ad45b82d7be07f1ece6130440dd54105f757d65
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-06-03 11:20:56 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-06-12 04:28:27 +0000

    pseudofs: enhance KASSERT with more information
    
    (cherry picked from commit 9a139facd06e4a1159a9c2cb992d04bcf1079e7e)
---
 sys/fs/pseudofs/pseudofs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/fs/pseudofs/pseudofs.c b/sys/fs/pseudofs/pseudofs.c
index fa9690264293..eafa2947490a 100644
--- a/sys/fs/pseudofs/pseudofs.c
+++ b/sys/fs/pseudofs/pseudofs.c
@@ -124,7 +124,8 @@ pfs_add_node(struct pfs_node *parent, struct pfs_node *pn)
 			    ("%s(): nested process directories", __func__));
 	for (iter = parent->pn_nodes; iter != NULL; iter = iter->pn_next) {
 		KASSERT(strcmp(pn->pn_name, iter->pn_name) != 0,
-		    ("%s(): homonymous siblings", __func__));
+		    ("%s(): homonymous siblings: '%s' type %d", __func__,
+		    pn->pn_name, pn->pn_type));
 		if (pn->pn_type == pfstype_procdir)
 			KASSERT(iter->pn_type != pfstype_procdir,
 			    ("%s(): sibling process directories", __func__));