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
This commit is contained in:
Robert Watson 2007-12-28 00:47:31 +00:00
parent 100f241571
commit c5f1beb02a

View File

@ -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) {