summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-03 17:21:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-03 17:21:50 +0000
commit3d6d70c7b7dad678106e21c664b48b64be8e461e (patch)
tree2f09a0529a0aaf485e1bb42bb26eb16726425705
parent803864855db72750fa706e131d6b7732651119b7 (diff)
be silent for SCSI_SILENT transactions
-rw-r--r--sys/scsi/st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index cbd739f228c..8af766ed97f 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.19 1997/08/22 04:43:27 millert Exp $ */
+/* $OpenBSD: st.c,v 1.20 1997/09/03 17:21:49 deraadt Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -1734,7 +1734,7 @@ st_interpret_sense(xs)
if ((sense->error_code & SSD_ERRCODE) != 0x70)
return -1; /* let the generic code handle it */
#if SCSIVERBOSE
- else
+ else if ((xs->flags & SCSI_SILENT) == 0)
scsi_print_sense(xs, 0); /* tell folks what happened */
#endif
if (st->flags & ST_FIXEDBLOCKS) {