From a795f8bbaa7e4ca8aeb5242f28bda34dc4ec43d4 Mon Sep 17 00:00:00 2001 From: "Kenneth D. Merry" Date: Tue, 6 Oct 1998 04:16:07 +0000 Subject: [PATCH] Make the printf when busy_time < 0 a little more descriptive. This may help track down bugs in the devstat implementation in various drivers. (i.e., any situation where the driver does not call the devstat routines once and only once for each transaction initiation and completion) Prompted by: msmith --- sys/kern/subr_devstat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index 21c3881f23d..0e684c52c38 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: subr_devstat.c,v 1.1 1998/09/15 08:16:09 gibbs Exp $ + * $Id: subr_devstat.c,v 1.2 1998/09/20 00:10:39 ken Exp $ */ #include @@ -178,7 +178,9 @@ devstat_end_transaction(struct devstat *ds, u_int32_t bytes, /* Add our busy time to the total busy time. */ timevaladd(&ds->busy_time, &busy_time); } else if (ds->busy_count < 0) - printf("devstat_end_transaction: HELP!! busy_count is < 0!\n"); + printf("devstat_end_transaction: HELP!! busy_count " + "for %s%d is < 0 (%d)!\n", ds->device_name, + ds->unit_number, ds->busy_count); } /*