diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 21:20:11 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 21:20:11 +0000 |
commit | 32de0087b025b9e12e0980a38dfd3c8798956bf7 (patch) | |
tree | b35716885c7a2468620fb661831d7bc6517ba7ba /sys/fs | |
parent | 2f2074cbd9f04da0b12bf1cf6610c05cfe96913c (diff) | |
download | FreeBSD-src-32de0087b025b9e12e0980a38dfd3c8798956bf7.zip FreeBSD-src-32de0087b025b9e12e0980a38dfd3c8798956bf7.tar.gz |
Update for the KDB framework:
o Call kdb_enter() instead of Debugger().
o Make debugging code conditional upon KDB instead of DDB.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/nullfs/null_subr.c | 3 | ||||
-rw-r--r-- | sys/fs/nullfs/null_vfsops.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c index cccbe51..7a2d752 100644 --- a/sys/fs/nullfs/null_subr.c +++ b/sys/fs/nullfs/null_subr.c @@ -304,9 +304,8 @@ null_hashrem(xp) } #ifdef DIAGNOSTIC -#include "opt_ddb.h" -#ifdef DDB +#ifdef KDB #define null_checkvp_barrier 1 #else #define null_checkvp_barrier 0 diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 9014c74..0ecfda2 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -42,6 +42,7 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/kdb.h> #include <sys/kernel.h> #include <sys/lock.h> #include <sys/malloc.h> @@ -260,7 +261,7 @@ nullfs_root(mp, vpp) #ifdef NULLFS_DEBUG if (VOP_ISLOCKED(vp, NULL)) { - Debugger("root vnode is locked.\n"); + kdb_enter("root vnode is locked.\n"); vrele(vp); return (EDEADLK); } |