[patch 1/1] scsi: Disable short inquiry log by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
---

 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;
 	}
 
_
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux