summaryrefslogtreecommitdiff
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-05-07 15:52:48 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-05-07 15:52:48 +0000
commit8760146ae56c27ffcc0d1add8244378a99b9c1eb (patch)
tree4389de24d7688f47c139846a2605bf6254c31667 /sys/kern/subr_witness.c
parent801555ec138f7e8ee6b92513b49b8d185acf0954 (diff)
Make the print function of db_print_stack_trace() configurable,
and indicate if a saved stack trace is empty. OK guenther@
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 397671b5753..5228f98683c 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_witness.c,v 1.10 2018/05/02 01:59:34 visa Exp $ */
+/* $OpenBSD: subr_witness.c,v 1.11 2018/05/07 15:52:47 visa Exp $ */
/*-
* Copyright (c) 2008 Isilon Systems, Inc.
@@ -2233,7 +2233,8 @@ restart:
tmp_w1.w_class->lc_name,
tmp_w2.w_type->lt_name,
tmp_w2.w_class->lc_name);
- db_print_stack_trace(&tmp_data1.wlod_stack);
+ db_print_stack_trace(&tmp_data1.wlod_stack,
+ db_printf);
db_printf("\n");
}
if (data2 && data2 != data1) {
@@ -2243,7 +2244,8 @@ restart:
tmp_w2.w_class->lc_name,
tmp_w1.w_type->lt_name,
tmp_w1.w_class->lc_name);
- db_print_stack_trace(&tmp_data2.wlod_stack);
+ db_print_stack_trace(&tmp_data2.wlod_stack,
+ db_printf);
db_printf("\n");
}
}