summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_stack.c
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2015-11-19 05:56:59 +0000
committermarkj <markj@FreeBSD.org>2015-11-19 05:56:59 +0000
commit7df27c46207386490016378c4e55881e9b0ef253 (patch)
treed59514356cb356d669095e191c490d9ec3429fde /sys/kern/subr_stack.c
parentafc7726a4655204bd2beef48dfac832b21f3e466 (diff)
downloadFreeBSD-src-7df27c46207386490016378c4e55881e9b0ef253.zip
FreeBSD-src-7df27c46207386490016378c4e55881e9b0ef253.tar.gz
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
Diffstat (limited to 'sys/kern/subr_stack.c')
-rw-r--r--sys/kern/subr_stack.c4
1 files changed, 2 insertions, 2 deletions
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)
{
OpenPOWER on IntegriCloud