summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1998-10-06 04:16:07 +0000
committerken <ken@FreeBSD.org>1998-10-06 04:16:07 +0000
commite69402680d377e219bd4e318ff924be63ba05d99 (patch)
tree6161283dccc5a5c9bcf8074c3f94b334347dc60f /sys
parenta90d05e930ec239c54608d6e37fa544712ba7947 (diff)
downloadFreeBSD-src-e69402680d377e219bd4e318ff924be63ba05d99.zip
FreeBSD-src-e69402680d377e219bd4e318ff924be63ba05d99.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_devstat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index 21c3881..0e684c5 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 <sys/param.h>
@@ -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);
}
/*
OpenPOWER on IntegriCloud