diff options
-rw-r--r-- | drivers/s390/block/dasd_eckd.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c index 59b4ecfb967b..ea0e565ebc9d 100644 --- a/drivers/s390/block/dasd_eckd.c +++ b/drivers/s390/block/dasd_eckd.c | |||
@@ -3093,16 +3093,20 @@ dasd_eckd_dump_sense_dbf(struct dasd_device *device, struct irb *irb, | |||
3093 | char *reason) | 3093 | char *reason) |
3094 | { | 3094 | { |
3095 | u64 *sense; | 3095 | u64 *sense; |
3096 | u32 stat; | ||
3096 | 3097 | ||
3097 | sense = (u64 *) dasd_get_sense(irb); | 3098 | sense = (u64 *) dasd_get_sense(irb); |
3099 | stat = scsw_cstat(&irb->scsw); | ||
3100 | stat <<= 8; | ||
3101 | stat |= scsw_dstat(&irb->scsw); | ||
3102 | stat <<= 8; | ||
3103 | stat |= scsw_cc(&irb->scsw); | ||
3104 | |||
3098 | if (sense) { | 3105 | if (sense) { |
3099 | DBF_DEV_EVENT(DBF_EMERG, device, | 3106 | DBF_DEV_EVENT(DBF_EMERG, device, |
3100 | "%s: %s %02x%02x%02x %016llx %016llx %016llx " | 3107 | "%s: %s %06x %016llx %016llx %016llx %016llx", |
3101 | "%016llx", reason, | 3108 | reason, scsw_is_tm(&irb->scsw) ? "t" : "c", stat, |
3102 | scsw_is_tm(&irb->scsw) ? "t" : "c", | 3109 | sense[0], sense[1], sense[2], sense[3]); |
3103 | scsw_cc(&irb->scsw), scsw_cstat(&irb->scsw), | ||
3104 | scsw_dstat(&irb->scsw), sense[0], sense[1], | ||
3105 | sense[2], sense[3]); | ||
3106 | } else { | 3110 | } else { |
3107 | DBF_DEV_EVENT(DBF_EMERG, device, "%s", | 3111 | DBF_DEV_EVENT(DBF_EMERG, device, "%s", |
3108 | "SORRY - NO VALID SENSE AVAILABLE\n"); | 3112 | "SORRY - NO VALID SENSE AVAILABLE\n"); |