* [PATCH 0/4] SCSI: Printing cleanups
@ 2007-02-28 3:39 Martin K. Petersen
2007-02-28 4:04 ` Douglas Gilbert
0 siblings, 1 reply; 3+ messages in thread
From: Martin K. Petersen @ 2007-02-28 3:39 UTC (permalink / raw)
To: linux-scsi
This patch series is the first batch of cleanups in an attempt to make
the SCSI printing more consistent and suitable for human consumption.
Previously a typical error looked like this:
sd 0:0:0:0: SCSI error: return code = 0x08000002
sda: Current: sense key: Aborted Command
Additional sense: Logical block reference tag check failed
You had to have the magic return value decoder ring handy to figure
out what had really happened. And you had to do the mapping between
sd 0:0:0:0 and sda yourself.
The following patches clean up various bits so that the same
information can be presented in a more readable form:
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
sd 0:0:0:0: [sda] Sense Key : Aborted Command [current]
sd 0:0:0:0: [sda] Add. Sense: Logical block reference tag check failed
All printk's from sd.c now have the same prefix. If logging is turned
on, for instance, we also get:
sd 0:0:0:0: [sda] Send: 0x0fb89180
sd 0:0:0:0: [sda] CDB: Read(16): 88 20 00 00 00 00 00 00 00 20 00 00 00 08 00 00
sd 0:0:0:0: [sda] Done: 0x0fb89180 SUCCESS
The patches need to be applied in order.
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/4] SCSI: Printing cleanups
2007-02-28 3:39 [PATCH 0/4] SCSI: Printing cleanups Martin K. Petersen
@ 2007-02-28 4:04 ` Douglas Gilbert
2007-02-28 17:09 ` Martin K. Petersen
0 siblings, 1 reply; 3+ messages in thread
From: Douglas Gilbert @ 2007-02-28 4:04 UTC (permalink / raw)
To: Martin K. Petersen; +Cc: linux-scsi
Martin K. Petersen wrote:
> This patch series is the first batch of cleanups in an attempt to make
> the SCSI printing more consistent and suitable for human consumption.
>
> Previously a typical error looked like this:
>
> sd 0:0:0:0: SCSI error: return code = 0x08000002
> sda: Current: sense key: Aborted Command
> Additional sense: Logical block reference tag check failed
>
> You had to have the magic return value decoder ring handy to figure
> out what had really happened. And you had to do the mapping between
> sd 0:0:0:0 and sda yourself.
>
>
> The following patches clean up various bits so that the same
> information can be presented in a more readable form:
>
> sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
> sd 0:0:0:0: [sda] Sense Key : Aborted Command [current]
> sd 0:0:0:0: [sda] Add. Sense: Logical block reference tag check failed
>
> All printk's from sd.c now have the same prefix. If logging is turned
> on, for instance, we also get:
>
> sd 0:0:0:0: [sda] Send: 0x0fb89180
> sd 0:0:0:0: [sda] CDB: Read(16): 88 20 00 00 00 00 00 00 00 20 00 00 00 08 00 00
> sd 0:0:0:0: [sda] Done: 0x0fb89180 SUCCESS
>
> The patches need to be applied in order.
Martin,
Looks good.
If you need to revise anything, perhaps you could add a
comment with this url near the list of additional sense
codes:
http://www.t10.org/lists/asc-num.txt
That is the official list of SCSI additional sense codes.
Based on the date of my last additional sense code update
only this one is missing:
2Fh/02h DTLPWROMAEBKVF COMMANDS CLEARED BY DEVICE SERVER
Doug Gilbert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/4] SCSI: Printing cleanups
2007-02-28 4:04 ` Douglas Gilbert
@ 2007-02-28 17:09 ` Martin K. Petersen
0 siblings, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2007-02-28 17:09 UTC (permalink / raw)
To: dougg; +Cc: Martin K. Petersen, linux-scsi
>>>>> "Doug" == Douglas Gilbert <dougg@torque.net> writes:
Doug> If you need to revise anything, perhaps you could add a comment
Doug> with this url near the list of additional sense codes:
Doug> http://www.t10.org/lists/asc-num.txt
Oh, that's super helpful. Much easier than searching the SPC draft.
Patch on its way...
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-28 17:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-28 3:39 [PATCH 0/4] SCSI: Printing cleanups Martin K. Petersen
2007-02-28 4:04 ` Douglas Gilbert
2007-02-28 17:09 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox