Move the "warning: bcount value is %d after io" message in a WDCDEBUG_PRINT.
Ifdef DIAGNOSTIC, print the above message only if bcount is < 0.
This commit is contained in:
parent
22acea3cb7
commit
5f723da8af
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: atapi_wdc.c,v 1.6 1998/10/13 15:18:48 bouyer Exp $ */
|
||||
/* $NetBSD: atapi_wdc.c,v 1.7 1998/10/19 12:28:03 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Manuel Bouyer.
|
||||
|
@ -554,8 +554,12 @@ again:
|
|||
} else if (dma_err < 0) {
|
||||
sc_xfer->error = XS_DRIVER_STUFFUP;
|
||||
}
|
||||
#ifdef DIAGNOSTIC
|
||||
if (xfer->c_bcount != 0) {
|
||||
WDCDEBUG_PRINT(("wdc_atapi_intr: bcount value is "
|
||||
"%d after io\n", xfer->c_bcount), DEBUG_XFERS);
|
||||
}
|
||||
#ifdef DIAGNOSTIC
|
||||
if (xfer->c_bcount < 0) {
|
||||
printf("wdc_atapi_intr warning: bcount value "
|
||||
"is %d after io\n", xfer->c_bcount);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue