summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2006-05-28 00:27:09 +0000
committerkrw <krw@openbsd.org>2006-05-28 00:27:09 +0000
commit2a5225716c5fd345bc0330758e1eafa73f1f106c (patch)
treef659dbd36a9c0ad0ad111e5eefd56c2092a9f8e2
parentunbreak, of course this needs to included sys/hotplug.h too (diff)
downloadwireguard-openbsd-2a5225716c5fd345bc0330758e1eafa73f1f106c.tar.xz
wireguard-openbsd-2a5225716c5fd345bc0330758e1eafa73f1f106c.zip
Don't print tape media information during probe. This is transitory
information that doesn't have anything to do with the device. We don't say 'cd drive empty or not ready." ok beck@
-rw-r--r--sys/scsi/st.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index 5e918ddb35a..ea1468c3615 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.51 2006/05/11 00:45:59 krw Exp $ */
+/* $OpenBSD: st.c,v 1.52 2006/05/28 00:27:09 krw Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -393,29 +393,7 @@ stattach(parent, self, aux)
* Any steps needed to bring it into line
*/
st_identify_drive(st, sa->sa_inqbuf);
-
- /*
- * Use the subdriver to request information regarding
- * the drive. We cannot use interrupts yet, so the
- * request must specify this.
- */
printf("\n");
- printf("%s: %s", st->sc_dev.dv_xname, st->quirkdata ? "rogue, " : "");
- if (scsi_test_unit_ready(sc_link, TEST_READY_RETRIES_TAPE,
- scsi_autoconf | SCSI_SILENT | SCSI_IGNORE_MEDIA_CHANGE) ||
- st_mode_sense(st,
- scsi_autoconf | SCSI_SILENT | SCSI_IGNORE_MEDIA_CHANGE)) {
- printf("drive empty or not ready\n");
- }
- else {
- printf("density code 0x%x, ", st->media_density);
- if (st->media_blksize > 0)
- printf("%d-byte", st->media_blksize);
- else
- printf("variable");
- printf(" blocks, write-%s\n",
- (st->flags & ST_READONLY) ? "protected" : "enabled");
- }
/*
* Set up the buf queue for this device