public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 1/1] scsi: Disable short inquiry log by default
@ 2007-04-02 21:20 brking
  2007-04-02 21:35 ` Matthew Wilcox
  2007-04-02 21:42 ` James Bottomley
  0 siblings, 2 replies; 4+ messages in thread
From: brking @ 2007-04-02 21:20 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, brking


If a scsi device reports less than 36 bytes of standard inquiry
data, scsi core logs a KERN_INFO printk indicating this. It was
observed that this results in lots of clutter in the log on
systems with devices that respond to a SCSI Inquiry with PQ=3 or
PQ=1 with less than 36 bytes of inquiry data, such as ibmvscsi.
Disable this log by default.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---

 drivers/scsi/scsi_scan.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/scsi/scsi_scan.c~scsi_scan_short_inq_log drivers/scsi/scsi_scan.c
--- linux-2.6/drivers/scsi/scsi_scan.c~scsi_scan_short_inq_log	2007-04-02 15:10:46.000000000 -0500
+++ linux-2.6-bjking1/drivers/scsi/scsi_scan.c	2007-04-02 15:13:39.000000000 -0500
@@ -662,8 +662,8 @@ static int scsi_probe_lun(struct scsi_de
 	 * strings.
 	 */
 	if (sdev->inquiry_len < 36) {
-		printk(KERN_INFO "scsi scan: INQUIRY result too short (%d),"
-				" using 36\n", sdev->inquiry_len);
+		SCSI_LOG_SCAN_BUS(1, printk(KERN_INFO "scsi scan: INQUIRY result too"
+					    " short (%d), using 36\n", sdev->inquiry_len));
 		sdev->inquiry_len = 36;
 	}
 
_

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-04 18:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02 21:20 [patch 1/1] scsi: Disable short inquiry log by default brking
2007-04-02 21:35 ` Matthew Wilcox
2007-04-02 21:42 ` James Bottomley
2007-04-04 18:18   ` Brian King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox