From c5f1beb02a3bae14a9dff355aad2bcd92bec5216 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 28 Dec 2007 00:47:31 +0000 Subject: [PATCH] In "show lockedvnods" DDB command, use db_printf() rather than printf() so that the results end up in the DDB output stream rather than the console output stream. This should likely also be done for the vprint() function it calls. MFC after: 3 months --- sys/kern/vfs_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index bd2ba700b325..3396544a815c 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2681,7 +2681,7 @@ DB_SHOW_COMMAND(lockedvnods, lockedvnodes) * state and dereference a nasty pointer. Not much to be done * about that. */ - printf("Locked vnodes\n"); + db_printf("Locked vnodes\n"); for (mp = TAILQ_FIRST(&mountlist); mp != NULL; mp = nmp) { nmp = TAILQ_NEXT(mp, mnt_list); TAILQ_FOREACH(vp, &mp->mnt_nvnodelist, v_nmntvnodes) {