odd debug spew while reading a CD.
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