diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-01-25 21:51:19 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-01-25 21:51:19 +0000 |
commit | d610c9c5445dd472b76d2f1f195ad35a0759ef89 (patch) | |
tree | e7e174182fc77beddab656018d9b9a3266a5e102 /sys/scsi/sd.c | |
parent | 725770a94c4ecf9f891a8054cd0cb28e2676f53b (diff) |
Be less verbose in sdattach() by suppressing the display of detailed
sense information when attempting to discover the disk size.
USB 6-in-1 readers have a bunch of LUNs and otherwise produce many
'Medium Not Present' details everytime they are plugged in. Noticed
by grange@.
Requested by and ok deraadt@.
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index a19c955686e..de69457d985 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.64 2004/01/25 00:52:49 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.65 2004/01/25 21:51:18 krw Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -234,7 +234,7 @@ sdattach(parent, self, aux) result = SDGP_RESULT_OFFLINE; else result = (*sd->sc_ops->sdo_get_parms)(sd, &sd->params, - scsi_autoconf | SCSI_IGNORE_MEDIA_CHANGE); + scsi_autoconf | SCSI_SILENT | SCSI_IGNORE_MEDIA_CHANGE); printf("%s: ", sd->sc_dev.dv_xname); switch (result) { |