linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* odd debug spew while reading a CD.
@ 2010-08-17 21:08 Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2010-08-17 21:08 UTC (permalink / raw)
  To: linux-scsi

When ripping an audio CD earlier, I got a bunch of these messages in dmesg,
even though the CD read just fine..

[ 8669.821077] sr 4:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8669.821083] sr 4:0:0:0: [sr0] Sense Key : Illegal Request [current] 
[ 8669.821090] ILI
[ 8669.821093] sr 4:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 8669.821101] sr 4:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 00 00 00 00 02 00
[ 8669.821116] end_request: I/O error, dev sr0, sector 0
[ 8669.821121] Buffer I/O error on device sr0, logical block 0
[ 8669.821128] Buffer I/O error on device sr0, logical block 1

the "ILI" message on its own caught my eye.
In constants.c, we print a prefix before that message in this case..

1345                 if (fixed_valid)
1346                         res += snprintf(buff + res, blen - res,
1347                                         "Info fld=0x%x", info);

But if fixed_valid (sense_buffer[0] & 0x80;) is not true, we end up printing
status codes with no prefix, which looks odd.  Is this the desired behaviour ?

	Dave


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-17 21:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 21:08 odd debug spew while reading a CD Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).