Commit ed3640b2 authored by Stefan Haberland's avatar Stefan Haberland Committed by Martin Schwidefsky

[S390] dasd fix dump_sense_dbf

The dasd_eckd_dump_sense_dbf function uses a macro for s390 debug
feature that can handle up to 8 parameters (for the DASD device
driver).
Fix the function to use only the maximum number of parameters.
Signed-off-by: default avatarStefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent a8481c2a
...@@ -3093,16 +3093,20 @@ dasd_eckd_dump_sense_dbf(struct dasd_device *device, struct irb *irb, ...@@ -3093,16 +3093,20 @@ dasd_eckd_dump_sense_dbf(struct dasd_device *device, struct irb *irb,
char *reason) char *reason)
{ {
u64 *sense; u64 *sense;
u32 stat;
sense = (u64 *) dasd_get_sense(irb); sense = (u64 *) dasd_get_sense(irb);
stat = scsw_cstat(&irb->scsw);
stat <<= 8;
stat |= scsw_dstat(&irb->scsw);
stat <<= 8;
stat |= scsw_cc(&irb->scsw);
if (sense) { if (sense) {
DBF_DEV_EVENT(DBF_EMERG, device, DBF_DEV_EVENT(DBF_EMERG, device,
"%s: %s %02x%02x%02x %016llx %016llx %016llx " "%s: %s %06x %016llx %016llx %016llx %016llx",
"%016llx", reason, reason, scsw_is_tm(&irb->scsw) ? "t" : "c", stat,
scsw_is_tm(&irb->scsw) ? "t" : "c", sense[0], sense[1], sense[2], sense[3]);
scsw_cc(&irb->scsw), scsw_cstat(&irb->scsw),
scsw_dstat(&irb->scsw), sense[0], sense[1],
sense[2], sense[3]);
} else { } else {
DBF_DEV_EVENT(DBF_EMERG, device, "%s", DBF_DEV_EVENT(DBF_EMERG, device, "%s",
"SORRY - NO VALID SENSE AVAILABLE\n"); "SORRY - NO VALID SENSE AVAILABLE\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment