summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_pool.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2002-01-29 00:14:23 +0000
committermiod <miod@openbsd.org>2002-01-29 00:14:23 +0000
commit2f64432fad29b7588cbfd9c72f56d0c23939fef6 (patch)
tree0c2f08a451f9881997485cea93d3093f6105f7e0 /sys/kern/subr_pool.c
parentyes, there is no sense in double savectx here; from Brian J. Kifiak <bk@rt.fm> (diff)
downloadwireguard-openbsd-2f64432fad29b7588cbfd9c72f56d0c23939fef6.tar.xz
wireguard-openbsd-2f64432fad29b7588cbfd9c72f56d0c23939fef6.zip
Honor the printf-like function argument in pool_printit(), instead of
using printf(). Makes ddb sessions more fruitful.
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r--sys/kern/subr_pool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index 5cfbb8e9b0b..ed813cccd06 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.23 2002/01/28 03:23:52 art Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.24 2002/01/29 00:14:23 miod Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -1359,12 +1359,12 @@ pool_printit(struct pool *pp, const char *modif, int (*pr)(const char *, ...))
s = splvm();
if (simple_lock_try(&pp->pr_slock) == 0) {
- printf("pool %s is locked; try again later\n",
+ pr("pool %s is locked; try again later\n",
pp->pr_wchan);
splx(s);
return;
}
- pool_print1(pp, modif, printf);
+ pool_print1(pp, modif, pr);
simple_unlock(&pp->pr_slock);
splx(s);
}