From: krw Date: Sat, 26 Jul 2008 18:55:31 +0000 (+0000) Subject: Silence scsi_inquire_vpd() so devices that don't understand the necessary X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f36063fce027b9637accec9e269a00c3b5d48893;p=openbsd Silence scsi_inquire_vpd() so devices that don't understand the necessary INQUIRY options don't spam dmesg during probe. Seen by miod@ and kettenis@ for SCSI CD's. ok miod@ --- diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index efba28543c9..3bb110c6e1f 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.130 2008/07/05 16:07:01 krw Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.131 2008/07/26 18:55:31 krw Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -360,7 +360,7 @@ scsi_inquire_vpd(struct scsi_link *sc_link, void *buf, u_int buflen, error = scsi_scsi_cmd(sc_link, (struct scsi_generic *)&scsi_cmd, sizeof(scsi_cmd), buf, buflen, 2, 10000, NULL, - SCSI_DATA_IN | flags); + SCSI_DATA_IN | SCSI_SILENT | flags); return (error); }