summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_usrreq.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2003-06-28 01:52:17 +0000
committertedu <tedu@openbsd.org>2003-06-28 01:52:17 +0000
commit4cb357ddccdad2fe76d12c9fd31142631518427a (patch)
tree5bccc8d44e8053df6a0cdf6a5e929619b9794969 /sys/ddb/db_usrreq.c
parentsync (diff)
downloadwireguard-openbsd-4cb357ddccdad2fe76d12c9fd31142631518427a.tar.xz
wireguard-openbsd-4cb357ddccdad2fe76d12c9fd31142631518427a.zip
option to log ddb output to kernel message buffer, via sysctl ddb.log
ok deraadt@ henric@ djm@
Diffstat (limited to 'sys/ddb/db_usrreq.c')
-rw-r--r--sys/ddb/db_usrreq.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ddb/db_usrreq.c b/sys/ddb/db_usrreq.c
index bfec3e3d606..02d8fbcb58f 100644
--- a/sys/ddb/db_usrreq.c
+++ b/sys/ddb/db_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_usrreq.c,v 1.7 2003/06/02 19:27:14 mickey Exp $ */
+/* $OpenBSD: db_usrreq.c,v 1.8 2003/06/28 01:52:18 tedu Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff. All rights reserved.
@@ -33,6 +33,8 @@
#include <ddb/db_var.h>
+int db_log;
+
int
ddb_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
int *name;
@@ -81,6 +83,8 @@ ddb_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
return (EPERM);
db_console = ctlval;
return (0);
+ case DBCTL_LOG:
+ return (sysctl_int(oldp, oldlenp, newp, newlen, &db_log));
default:
return (EOPNOTSUPP);
}