From d9e371b9958d303113e763b0bad616983c39e314 Mon Sep 17 00:00:00 2001 From: "Kenneth D. Merry" Date: Sun, 15 Nov 1998 23:57:22 +0000 Subject: [PATCH] Now that the wd driver is fixed (Thanks Bruce!), re-enable the devstat_end_transaction error message that gets printed whenever the busy count is < 0. This will help catch drivers that improperly implement devstat(9) support. --- sys/kern/subr_devstat.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index 04be0a3272aa..5d8f4a84e9c6 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.4 1998/10/14 20:44:05 ken Exp $ + * $Id: subr_devstat.c,v 1.5 1998/11/14 21:58:51 wollman Exp $ */ #include @@ -177,18 +177,10 @@ 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); - } - /* - * XXX KDM this is temporarily disabled to avoid causing - * unsophisticated users to panic. There are unfixed bugs in the - * wd driver that will set off this error message. - */ -#if 0 - else if (ds->busy_count < 0) + } else if (ds->busy_count < 0) printf("devstat_end_transaction: HELP!! busy_count " "for %s%d is < 0 (%d)!\n", ds->device_name, ds->unit_number, ds->busy_count); -#endif } /*