Date: Wed, 5 Mar 2003 12:45:58 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 26391 for review Message-ID: <200303052045.h25KjwXO092195@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303052045.h25KjwXO092195>