From 4ea4f1f97ea5212549efbb882c2e8859b19b4254 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sat, 10 Jul 2004 21:20:11 +0000 Subject: [PATCH] Update for the KDB framework: o Call kdb_enter() instead of Debugger(). o Make debugging code conditional upon KDB instead of DDB. --- sys/fs/nullfs/null_subr.c | 3 +-- 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 cccbe51b294..7a2d7524471 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 9014c74b474..0ecfda23818 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -42,6 +42,7 @@ #include #include +#include #include #include #include @@ -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); }