summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-06-04 17:03:04 +0000
committermiod <miod@openbsd.org>2007-06-04 17:03:04 +0000
commit3f2ddeebb7a76b7ef7035ef938bf76514760e00d (patch)
tree9959124a5c699ae5cc157fc0732bb07bf449e1cf
parentzap extra parameter that nothing uses. (diff)
downloadwireguard-openbsd-3f2ddeebb7a76b7ef7035ef938bf76514760e00d.tar.xz
wireguard-openbsd-3f2ddeebb7a76b7ef7035ef938bf76514760e00d.zip
Ten lines of backtrace should be better on 25-line screens, so that the panic
message is still visible.
-rw-r--r--sys/ddb/db_trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_trap.c b/sys/ddb/db_trap.c
index 94a7cff8b74..6d463759d32 100644
--- a/sys/ddb/db_trap.c
+++ b/sys/ddb/db_trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trap.c,v 1.12 2007/06/04 16:52:39 miod Exp $ */
+/* $OpenBSD: db_trap.c,v 1.13 2007/06/04 17:03:04 miod Exp $ */
/* $NetBSD: db_trap.c,v 1.9 1996/02/05 01:57:18 christos Exp $ */
/*
@@ -78,7 +78,7 @@ db_trap(int type, int code)
* give the user a traceback.
*/
if (cold) {
- db_stack_trace_print(db_dot, 0, 20 /* arbitrary */, "",
+ db_stack_trace_print(db_dot, 0, 10 /* arbitrary */, "",
db_printf);
}