diff options
author | gibbs <gibbs@FreeBSD.org> | 1998-11-13 13:23:36 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1998-11-13 13:23:36 +0000 |
commit | 8066791e595c58b6e425b97310c7b6828a2be472 (patch) | |
tree | 5b8c857d58f18a0e39dc80f7940811ce169c882b /sys | |
parent | f8c57dfec25a155e314599fc9821cce5f41f7109 (diff) | |
download | FreeBSD-src-8066791e595c58b6e425b97310c7b6828a2be472.zip FreeBSD-src-8066791e595c58b6e425b97310c7b6828a2be472.tar.gz |
Move a diagnostic behind "if (bootverbose)".
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/buslogic/bt.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/buslogic/bt.c b/sys/dev/buslogic/bt.c index 4dd7c3a..1e1f68c 100644 --- a/sys/dev/buslogic/bt.c +++ b/sys/dev/buslogic/bt.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bt.c,v 1.9 1998/11/10 06:44:50 gibbs Exp $ + * $Id: bt.c,v 1.10 1998/11/10 06:47:11 gibbs Exp $ */ /* @@ -1538,10 +1538,12 @@ btdone(struct bt_softc *bt, struct bt_ccb *bccb, bt_mbi_comp_code_t comp_code) break; case BMBI_ABORT: case BMBI_ERROR: - printf("bt: ccb %p - error %x occured. " - "btstat = %x, sdstat = %x\n", - (void *)bccb, comp_code, bccb->hccb.btstat, - bccb->hccb.sdstat); + if (bootverbose) { + printf("bt: ccb %p - error %x occured. " + "btstat = %x, sdstat = %x\n", + (void *)bccb, comp_code, bccb->hccb.btstat, + bccb->hccb.sdstat); + } /* An error occured */ switch(bccb->hccb.btstat) { case BTSTAT_DATARUN_ERROR: |