From 7df27c46207386490016378c4e55881e9b0ef253 Mon Sep 17 00:00:00 2001 From: markj Date: Thu, 19 Nov 2015 05:56:59 +0000 Subject: Add support for a configurable output channel to witness(4). This is useful in environments where system configuration is performed by automated interaction with the system console, since unexpected witness output makes such automation difficult. With this change, the new debug.witness.output_channel sysctl allows one to specify that witness output is to be printed to the kernel log (using log(9)) rather than the console. Reviewed by: cem, jhb MFC after: 2 weeks Relnotes: yes Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D4183 --- sys/kern/subr_stack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/subr_stack.c') diff --git a/sys/kern/subr_stack.c b/sys/kern/subr_stack.c index 6408aec..85102c0 100644 --- a/sys/kern/subr_stack.c +++ b/sys/kern/subr_stack.c @@ -141,7 +141,7 @@ stack_print_ddb(const struct stack *st) } } -#ifdef DDB +#if defined(DDB) || defined(WITNESS) void stack_print_short_ddb(const struct stack *st) { @@ -182,7 +182,7 @@ stack_sbuf_print(struct sbuf *sb, const struct stack *st) } } -#ifdef DDB +#if defined(DDB) || defined(WITNESS) void stack_sbuf_print_ddb(struct sbuf *sb, const struct stack *st) { -- cgit v1.1