From cc7de098fa0ec5b1e6d30d1aa4952ca3134363c9 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 29 Jan 2002 00:14:24 +0000 Subject: Honor the printf-like function argument in pool_printit(), instead of using printf(). Makes ddb sessions more fruitful. --- sys/kern/subr_pool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/kern') 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); } -- cgit v1.2.3