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.
This commit is contained in:
Kenneth D. Merry 1998-11-15 23:57:22 +00:00
parent 122d2c5921
commit d9e371b995
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41193

View File

@ -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 <sys/param.h>
@ -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
}
/*