From cf93bc6617ff271462d454408d5027fd3d89234c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 21 Apr 2006 20:39:51 +0000 Subject: [PATCH] Use LIST_FOREACH(). --- sys/ddb/db_command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 08f0b2c85a49..c15edaa97148 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -679,7 +679,7 @@ db_stack_trace_all(db_expr_t dummy, boolean_t dummy2, db_expr_t dummy3, quit = 0; db_setup_paging(db_simple_pager, &quit, db_lines_per_page); - for (p = LIST_FIRST(&allproc); p != NULL; p = LIST_NEXT(p, p_list)) { + LIST_FOREACH(p, &allproc, p_list) { FOREACH_THREAD_IN_PROC(p, td) { db_printf("\nTracing command %s pid %d tid %ld td %p\n", p->p_comm, p->p_pid, (long)td->td_tid, td);