diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-12-28 00:47:31 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-12-28 00:47:31 +0000 |
commit | 166f16a0c65fbc0905ba3a63268a239a2540a250 (patch) | |
tree | 28f1dee589cd1e7a1fce978e0c71696e58e81dfe | |
parent | c720b77ca941958916f2c143cba3327d448ee08b (diff) | |
download | FreeBSD-src-166f16a0c65fbc0905ba3a63268a239a2540a250.zip FreeBSD-src-166f16a0c65fbc0905ba3a63268a239a2540a250.tar.gz |
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
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index bd2ba70..3396544 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) { |