aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-03-04 21:03:05 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-03-04 21:03:05 +0000
commit263067951a1029407b1168b41d4f5757228d22dc (patch)
treed32954415444ccb8c42b0a457f6f0e6e15a0d64e /sys/kern/kern_sysctl.c
parent9b4982bfed075878b9cdea54bdd3c33af7c2cebc (diff)
downloadsrc-263067951a1029407b1168b41d4f5757228d22dc.tar.gz
src-263067951a1029407b1168b41d4f5757228d22dc.zip
Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls
to WITNESS_WARN().
Notes
Notes: svn path=/head/; revision=111883
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 05d61859bea0..2c5191c86470 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1000,7 +1000,8 @@ sysctl_old_user(struct sysctl_req *req, const void *p, size_t l)
size_t i = 0;
if (req->lock == 1 && req->oldptr)
- WITNESS_SLEEP(1, NULL);
+ WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
+ "sysctl_old_user()");
if (req->oldptr) {
i = l;
if (req->oldlen <= req->oldidx)