aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-02-05 22:49:59 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-02-05 23:28:39 +0000
commit2e96132a7d8bbb2347a3b4776806324f984aa49f (patch)
tree38106c64f7e547801e5d20e72f617a2dbd25879b /sys
parentb54ed778fe45d482bd1e2009df802fda26f94495 (diff)
downloadsrc-2e96132a7d8bbb2347a3b4776806324f984aa49f.tar.gz
src-2e96132a7d8bbb2347a3b4776806324f984aa49f.zip
cache: drop spurious arg from panic in cache_validate
vp is already reported when noting mismatch
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_cache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 47abe0feb152..5cfc23779c42 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -2824,9 +2824,8 @@ cache_validate(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
if (ncp->nc_dvp == dvp && ncp->nc_nlen == cnp->cn_namelen &&
!bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) {
if (ncp->nc_vp != vp)
- panic("%s: mismatch (%p != %p); ncp %p [%s] dvp %p vp %p\n",
- __func__, vp, ncp->nc_vp, ncp, ncp->nc_name, ncp->nc_dvp,
- ncp->nc_vp);
+ panic("%s: mismatch (%p != %p); ncp %p [%s] dvp %p\n",
+ __func__, vp, ncp->nc_vp, ncp, ncp->nc_name, ncp->nc_dvp);
}
}
mtx_unlock(blp);