vprint: print lock addresses.
This commit is contained in:
parent
ed830de973
commit
396ea241b5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vfs_subr2.c,v 1.17 2008/01/30 14:56:44 ad Exp $ */
|
||||
/* $NetBSD: vfs_subr2.c,v 1.18 2008/02/05 13:32:09 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -82,7 +82,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vfs_subr2.c,v 1.17 2008/01/30 14:56:44 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vfs_subr2.c,v 1.18 2008/02/05 13:32:09 ad Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
|
@ -1227,6 +1227,8 @@ vfs_vnode_print(struct vnode *vp, int full, void (*pr)(const char *, ...))
|
|||
ARRAY_PRINT(vp->v_type, vnode_types), vp->v_type,
|
||||
vp->v_mount, vp->v_mountedhere);
|
||||
|
||||
(*pr)("v_lock %p v_vnlock %p\n", &vp->v_lock, vp->v_vnlock);
|
||||
|
||||
if (full) {
|
||||
struct buf *bp;
|
||||
|
||||
|
|
Loading…
Reference in New Issue