diff options
Diffstat (limited to 'drivers/s390/scsi/zfcp_dbf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_dbf.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c index 735d675623f8..cb6df609953e 100644 --- a/drivers/s390/scsi/zfcp_dbf.c +++ b/drivers/s390/scsi/zfcp_dbf.c | |||
@@ -522,7 +522,7 @@ static const char *zfcp_rec_dbf_ids[] = { | |||
522 | [29] = "link down", | 522 | [29] = "link down", |
523 | [30] = "link up status read", | 523 | [30] = "link up status read", |
524 | [31] = "open port failed", | 524 | [31] = "open port failed", |
525 | [32] = "open port failed", | 525 | [32] = "", |
526 | [33] = "close port", | 526 | [33] = "close port", |
527 | [34] = "open unit failed", | 527 | [34] = "open unit failed", |
528 | [35] = "exclusive open unit failed", | 528 | [35] = "exclusive open unit failed", |
@@ -936,6 +936,7 @@ void zfcp_san_dbf_event_ct_response(struct zfcp_fsf_req *fsf_req) | |||
936 | rct->reason_code = hdr->reason_code; | 936 | rct->reason_code = hdr->reason_code; |
937 | rct->expl = hdr->reason_code_expl; | 937 | rct->expl = hdr->reason_code_expl; |
938 | rct->vendor_unique = hdr->vendor_unique; | 938 | rct->vendor_unique = hdr->vendor_unique; |
939 | rct->max_res_size = hdr->max_res_size; | ||
939 | rct->len = min((int)ct->resp->length - (int)sizeof(struct ct_hdr), | 940 | rct->len = min((int)ct->resp->length - (int)sizeof(struct ct_hdr), |
940 | ZFCP_DBF_SAN_MAX_PAYLOAD); | 941 | ZFCP_DBF_SAN_MAX_PAYLOAD); |
941 | debug_event(adapter->san_dbf, level, r, sizeof(*r)); | 942 | debug_event(adapter->san_dbf, level, r, sizeof(*r)); |
@@ -1043,6 +1044,7 @@ static int zfcp_san_dbf_view_format(debug_info_t *id, struct debug_view *view, | |||
1043 | zfcp_dbf_out(&p, "reason_code", "0x%02x", ct->reason_code); | 1044 | zfcp_dbf_out(&p, "reason_code", "0x%02x", ct->reason_code); |
1044 | zfcp_dbf_out(&p, "reason_code_expl", "0x%02x", ct->expl); | 1045 | zfcp_dbf_out(&p, "reason_code_expl", "0x%02x", ct->expl); |
1045 | zfcp_dbf_out(&p, "vendor_unique", "0x%02x", ct->vendor_unique); | 1046 | zfcp_dbf_out(&p, "vendor_unique", "0x%02x", ct->vendor_unique); |
1047 | zfcp_dbf_out(&p, "max_res_size", "0x%04x", ct->max_res_size); | ||
1046 | } else if (strncmp(r->tag, "oels", ZFCP_DBF_TAG_SIZE) == 0 || | 1048 | } else if (strncmp(r->tag, "oels", ZFCP_DBF_TAG_SIZE) == 0 || |
1047 | strncmp(r->tag, "rels", ZFCP_DBF_TAG_SIZE) == 0 || | 1049 | strncmp(r->tag, "rels", ZFCP_DBF_TAG_SIZE) == 0 || |
1048 | strncmp(r->tag, "iels", ZFCP_DBF_TAG_SIZE) == 0) { | 1050 | strncmp(r->tag, "iels", ZFCP_DBF_TAG_SIZE) == 0) { |
@@ -1249,7 +1251,7 @@ int zfcp_adapter_debug_register(struct zfcp_adapter *adapter) | |||
1249 | char dbf_name[DEBUG_MAX_NAME_LEN]; | 1251 | char dbf_name[DEBUG_MAX_NAME_LEN]; |
1250 | 1252 | ||
1251 | /* debug feature area which records recovery activity */ | 1253 | /* debug feature area which records recovery activity */ |
1252 | sprintf(dbf_name, "zfcp_%s_rec", zfcp_get_busid_by_adapter(adapter)); | 1254 | sprintf(dbf_name, "zfcp_%s_rec", dev_name(&adapter->ccw_device->dev)); |
1253 | adapter->rec_dbf = debug_register(dbf_name, dbfsize, 1, | 1255 | adapter->rec_dbf = debug_register(dbf_name, dbfsize, 1, |
1254 | sizeof(struct zfcp_rec_dbf_record)); | 1256 | sizeof(struct zfcp_rec_dbf_record)); |
1255 | if (!adapter->rec_dbf) | 1257 | if (!adapter->rec_dbf) |
@@ -1259,7 +1261,7 @@ int zfcp_adapter_debug_register(struct zfcp_adapter *adapter) | |||
1259 | debug_set_level(adapter->rec_dbf, 3); | 1261 | debug_set_level(adapter->rec_dbf, 3); |
1260 | 1262 | ||
1261 | /* debug feature area which records HBA (FSF and QDIO) conditions */ | 1263 | /* debug feature area which records HBA (FSF and QDIO) conditions */ |
1262 | sprintf(dbf_name, "zfcp_%s_hba", zfcp_get_busid_by_adapter(adapter)); | 1264 | sprintf(dbf_name, "zfcp_%s_hba", dev_name(&adapter->ccw_device->dev)); |
1263 | adapter->hba_dbf = debug_register(dbf_name, dbfsize, 1, | 1265 | adapter->hba_dbf = debug_register(dbf_name, dbfsize, 1, |
1264 | sizeof(struct zfcp_hba_dbf_record)); | 1266 | sizeof(struct zfcp_hba_dbf_record)); |
1265 | if (!adapter->hba_dbf) | 1267 | if (!adapter->hba_dbf) |
@@ -1269,7 +1271,7 @@ int zfcp_adapter_debug_register(struct zfcp_adapter *adapter) | |||
1269 | debug_set_level(adapter->hba_dbf, 3); | 1271 | debug_set_level(adapter->hba_dbf, 3); |
1270 | 1272 | ||
1271 | /* debug feature area which records SAN command failures and recovery */ | 1273 | /* debug feature area which records SAN command failures and recovery */ |
1272 | sprintf(dbf_name, "zfcp_%s_san", zfcp_get_busid_by_adapter(adapter)); | 1274 | sprintf(dbf_name, "zfcp_%s_san", dev_name(&adapter->ccw_device->dev)); |
1273 | adapter->san_dbf = debug_register(dbf_name, dbfsize, 1, | 1275 | adapter->san_dbf = debug_register(dbf_name, dbfsize, 1, |
1274 | sizeof(struct zfcp_san_dbf_record)); | 1276 | sizeof(struct zfcp_san_dbf_record)); |
1275 | if (!adapter->san_dbf) | 1277 | if (!adapter->san_dbf) |
@@ -1279,7 +1281,7 @@ int zfcp_adapter_debug_register(struct zfcp_adapter *adapter) | |||
1279 | debug_set_level(adapter->san_dbf, 6); | 1281 | debug_set_level(adapter->san_dbf, 6); |
1280 | 1282 | ||
1281 | /* debug feature area which records SCSI command failures and recovery */ | 1283 | /* debug feature area which records SCSI command failures and recovery */ |
1282 | sprintf(dbf_name, "zfcp_%s_scsi", zfcp_get_busid_by_adapter(adapter)); | 1284 | sprintf(dbf_name, "zfcp_%s_scsi", dev_name(&adapter->ccw_device->dev)); |
1283 | adapter->scsi_dbf = debug_register(dbf_name, dbfsize, 1, | 1285 | adapter->scsi_dbf = debug_register(dbf_name, dbfsize, 1, |
1284 | sizeof(struct zfcp_scsi_dbf_record)); | 1286 | sizeof(struct zfcp_scsi_dbf_record)); |
1285 | if (!adapter->scsi_dbf) | 1287 | if (!adapter->scsi_dbf) |