summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-01-29 00:14:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-01-29 00:14:24 +0000
commitcc7de098fa0ec5b1e6d30d1aa4952ca3134363c9 (patch)
tree2ba60f1564a2bc6a9d4a4f7b92014dcd406c59ca /sys/kern
parent6008e3354778e7e234b47a4f8c1dda515ba915ac (diff)
Honor the printf-like function argument in pool_printit(), instead of
using printf(). Makes ddb sessions more fruitful.
Diffstat (limited to 'sys/kern')
-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);
}