On Wed, Jun 21, 2006 at 08:04:36PM +0200, Stefan Richter wrote: > Matthew Wilcox wrote: > >On Wed, Jun 21, 2006 at 01:18:43PM -0400, James Smart wrote: > >>scsi <2:0:1:0> x00:HP 18.2G:ATLAS10K3_18_SCA:HP05:02: > >>Eddie Williams wrote: > >>>scsi 2:0:1:0:DASD:HP 18.2G:ATLAS10K3_18_SCA:HP05:02: > >scsi 2:0:1:0: Direct-Access HP 18.2G ATLAS10K3_18_SCA HP05 ANSI ver: > >01 CCS > >scsi 2:0:1:0: Direct-Access xAB HP 18.2G ATLAS10K3_18_SCA HP05 Level: > >03 > >scsi 2:0:1:0: Direct-Access 7 HP 18.2G ATLAS10K3_18_SCA HP05 Level: 03 > > All of these hurt eyes. What is wrong with the current two-line format? Several things. The way that it's printed means that simultaneous scans lead to the output getting garbled. Also, when doing simultaneous scans, it's no longer clear (was it ever?) which device a particular scan message belongs to. That argues for attaching the scsi bus ID to the printk, and making it all one line, and as atomic as possible. James tells me that having the PQ number included helps determine problems with multipathing. > One line too many? What about silencing protocol drivers first? sd puts > out a lot of lines right after those inquiry data. What's more, sd is > forced by some upper layer to go through the initialization twice, > therefore sd sees fit to print its stuff out twice. This is where I see > potential to reduce log noise. There's a lot of places SCSI is too verbose. I intend to address all of them eventually; having hundreds of SCSI devices is really no fun right now. That cause isn't helped by people placing spurious roadblocks in the way. > Highly cryptic log messages on the other hand are about as valuable as > _no_ log messages at all. The lines I quoted above are not far from > white noise. You're exaggerating. BTW, here's what a line would look like from sbp2 ... scsi 9:0:0:0: CD-ROM MATSHITA UJDA730 DVD/CDRW 1.00 Level: 0 btw, I've always found that "CD-ROM" a little confusing; considering that SPC4 says "CD/DVD device", any objections to changing that string to say "CD/DVD" instead of "CD-ROM"? - : 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