From owner-p4-projects Wed Mar 5 12:46: 2 2003 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 107D537B405; Wed, 5 Mar 2003 12:46:00 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CD3037B401 for ; Wed, 5 Mar 2003 12:45:59 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4840243FB1 for ; Wed, 5 Mar 2003 12:45:59 -0800 (PST) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h25Kjx0U092198 for ; Wed, 5 Mar 2003 12:45:59 -0800 (PST) (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h25KjwXO092195 for perforce@freebsd.org; Wed, 5 Mar 2003 12:45:58 -0800 (PST) Date: Wed, 5 Mar 2003 12:45:58 -0800 (PST) Message-Id: <200303052045.h25KjwXO092195@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 26391 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=26391 Change 26391 by jhb@jhb_laptop on 2003/03/05 12:45:02 Style. Affected files ... .. //depot/projects/smpng/sys/kern/subr_witness.c#78 edit Differences ... ==== //depot/projects/smpng/sys/kern/subr_witness.c#78 (text+ko) ==== @@ -177,7 +177,7 @@ struct lock_object *lock); static int witness_list(struct thread *td); static void witness_list_lock(struct lock_instance *instance); -#if defined(DDB) +#ifdef DDB static void witness_display_list(void(*prnt)(const char *fmt, ...), struct witness_list *list); static void witness_display(void(*)(const char *fmt, ...)); @@ -489,7 +489,7 @@ mtx_unlock(&all_mtx); } -#if defined(DDB) +#ifdef DDB static void witness_display_list(void(*prnt)(const char *fmt, ...), struct witness_list *list) @@ -547,7 +547,7 @@ prnt("%s\n", w->w_name); } } -#endif +#endif /* DDB */ void witness_lock(struct lock_object *lock, int flags, const char *file, int line) @@ -560,7 +560,7 @@ int i, j; #ifdef DDB int go_into_ddb = 0; -#endif /* DDB */ +#endif if (witness_cold || witness_dead || lock->lo_witness == NULL || panicstr != NULL) @@ -653,7 +653,7 @@ printf(" 2nd %s @ %s:%d\n", lock->lo_name, file, line); #ifdef DDB go_into_ddb = 1; -#endif /* DDB */ +#endif goto out; } MPASS(!mtx_owned(&w_mtx)); @@ -778,7 +778,7 @@ } #ifdef DDB go_into_ddb = 1; -#endif /* DDB */ +#endif goto out; } } @@ -806,7 +806,7 @@ if (witness_ddb) Debugger(__func__); } -#endif /* DDB */ +#endif w->w_file = file; w->w_line = line; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message