diff options
author | Oleksandr Khoshaba <Oleksandr.Khoshaba@gmail.com> | 2013-08-27 01:37:27 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-03 10:27:59 -0400 |
commit | 7b8335589035b47504f98c1a22547f514386a48c (patch) | |
tree | d9402732b416364611d468311df9d6cb7f37d501 /drivers/scsi | |
parent | 963ba22b90a955363644cd397b20226928eab976 (diff) |
[SCSI] qla2xxx: Print some variables to hexadecimal string via %*phN format
The patch changes a specifier used to output some variables. Instead of using
stack for each byte the '%*ph[CN]' allows to take a one pointer and prints
entire buffer as a hexadecimal string with the separator ':' or ''.
Signed-off-by: Oleksandr Khoshaba <Oleksandr.Khoshaba@gmail.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_bsg.c | 9 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gs.c | 91 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 24 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 9 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mr.c | 13 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 10 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_target.c | 69 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/tcm_qla2xxx.c | 14 |
8 files changed, 58 insertions, 181 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 417eaad50ae2..2dbae0719d6a 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c | |||
@@ -1318,12 +1318,9 @@ qla24xx_iidma(struct fc_bsg_job *bsg_job) | |||
1318 | 1318 | ||
1319 | if (rval) { | 1319 | if (rval) { |
1320 | ql_log(ql_log_warn, vha, 0x704c, | 1320 | ql_log(ql_log_warn, vha, 0x704c, |
1321 | "iIDMA cmd failed for %02x%02x%02x%02x%02x%02x%02x%02x -- " | 1321 | "iIDMA cmd failed for %8phN -- " |
1322 | "%04x %x %04x %04x.\n", fcport->port_name[0], | 1322 | "%04x %x %04x %04x.\n", fcport->port_name, |
1323 | fcport->port_name[1], fcport->port_name[2], | 1323 | rval, fcport->fp_speed, mb[0], mb[1]); |
1324 | fcport->port_name[3], fcport->port_name[4], | ||
1325 | fcport->port_name[5], fcport->port_name[6], | ||
1326 | fcport->port_name[7], rval, fcport->fp_speed, mb[0], mb[1]); | ||
1327 | rval = (DID_ERROR << 16); | 1324 | rval = (DID_ERROR << 16); |
1328 | } else { | 1325 | } else { |
1329 | if (!port_param->mode) { | 1326 | if (!port_param->mode) { |
diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index 0926451980ed..84cce36b7a5f 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c | |||
@@ -226,17 +226,9 @@ qla2x00_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport) | |||
226 | fcport->d_id.b.domain = 0xf0; | 226 | fcport->d_id.b.domain = 0xf0; |
227 | 227 | ||
228 | ql_dbg(ql_dbg_disc, vha, 0x2063, | 228 | ql_dbg(ql_dbg_disc, vha, 0x2063, |
229 | "GA_NXT entry - nn %02x%02x%02x%02x%02x%02x%02x%02x " | 229 | "GA_NXT entry - nn %8phN pn %8phN " |
230 | "pn %02x%02x%02x%02x%02x%02x%02x%02x " | ||
231 | "port_id=%02x%02x%02x.\n", | 230 | "port_id=%02x%02x%02x.\n", |
232 | fcport->node_name[0], fcport->node_name[1], | 231 | fcport->node_name, fcport->port_name, |
233 | fcport->node_name[2], fcport->node_name[3], | ||
234 | fcport->node_name[4], fcport->node_name[5], | ||
235 | fcport->node_name[6], fcport->node_name[7], | ||
236 | fcport->port_name[0], fcport->port_name[1], | ||
237 | fcport->port_name[2], fcport->port_name[3], | ||
238 | fcport->port_name[4], fcport->port_name[5], | ||
239 | fcport->port_name[6], fcport->port_name[7], | ||
240 | fcport->d_id.b.domain, fcport->d_id.b.area, | 232 | fcport->d_id.b.domain, fcport->d_id.b.area, |
241 | fcport->d_id.b.al_pa); | 233 | fcport->d_id.b.al_pa); |
242 | } | 234 | } |
@@ -447,17 +439,9 @@ qla2x00_gnn_id(scsi_qla_host_t *vha, sw_info_t *list) | |||
447 | ct_rsp->rsp.gnn_id.node_name, WWN_SIZE); | 439 | ct_rsp->rsp.gnn_id.node_name, WWN_SIZE); |
448 | 440 | ||
449 | ql_dbg(ql_dbg_disc, vha, 0x2058, | 441 | ql_dbg(ql_dbg_disc, vha, 0x2058, |
450 | "GID_PT entry - nn %02x%02x%02x%02x%02x%02x%02X%02x " | 442 | "GID_PT entry - nn %8phN pn %8phN " |
451 | "pn %02x%02x%02x%02x%02x%02x%02X%02x " | ||
452 | "portid=%02x%02x%02x.\n", | 443 | "portid=%02x%02x%02x.\n", |
453 | list[i].node_name[0], list[i].node_name[1], | 444 | list[i].node_name, list[i].port_name, |
454 | list[i].node_name[2], list[i].node_name[3], | ||
455 | list[i].node_name[4], list[i].node_name[5], | ||
456 | list[i].node_name[6], list[i].node_name[7], | ||
457 | list[i].port_name[0], list[i].port_name[1], | ||
458 | list[i].port_name[2], list[i].port_name[3], | ||
459 | list[i].port_name[4], list[i].port_name[5], | ||
460 | list[i].port_name[6], list[i].port_name[7], | ||
461 | list[i].d_id.b.domain, list[i].d_id.b.area, | 445 | list[i].d_id.b.domain, list[i].d_id.b.area, |
462 | list[i].d_id.b.al_pa); | 446 | list[i].d_id.b.al_pa); |
463 | } | 447 | } |
@@ -796,17 +780,9 @@ qla2x00_sns_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport) | |||
796 | fcport->d_id.b.domain = 0xf0; | 780 | fcport->d_id.b.domain = 0xf0; |
797 | 781 | ||
798 | ql_dbg(ql_dbg_disc, vha, 0x2061, | 782 | ql_dbg(ql_dbg_disc, vha, 0x2061, |
799 | "GA_NXT entry - nn %02x%02x%02x%02x%02x%02x%02x%02x " | 783 | "GA_NXT entry - nn %8phN pn %8phN " |
800 | "pn %02x%02x%02x%02x%02x%02x%02x%02x " | ||
801 | "port_id=%02x%02x%02x.\n", | 784 | "port_id=%02x%02x%02x.\n", |
802 | fcport->node_name[0], fcport->node_name[1], | 785 | fcport->node_name, fcport->port_name, |
803 | fcport->node_name[2], fcport->node_name[3], | ||
804 | fcport->node_name[4], fcport->node_name[5], | ||
805 | fcport->node_name[6], fcport->node_name[7], | ||
806 | fcport->port_name[0], fcport->port_name[1], | ||
807 | fcport->port_name[2], fcport->port_name[3], | ||
808 | fcport->port_name[4], fcport->port_name[5], | ||
809 | fcport->port_name[6], fcport->port_name[7], | ||
810 | fcport->d_id.b.domain, fcport->d_id.b.area, | 786 | fcport->d_id.b.domain, fcport->d_id.b.area, |
811 | fcport->d_id.b.al_pa); | 787 | fcport->d_id.b.al_pa); |
812 | } | 788 | } |
@@ -991,17 +967,9 @@ qla2x00_sns_gnn_id(scsi_qla_host_t *vha, sw_info_t *list) | |||
991 | WWN_SIZE); | 967 | WWN_SIZE); |
992 | 968 | ||
993 | ql_dbg(ql_dbg_disc, vha, 0x206e, | 969 | ql_dbg(ql_dbg_disc, vha, 0x206e, |
994 | "GID_PT entry - nn %02x%02x%02x%02x%02x%02x%02x%02x " | 970 | "GID_PT entry - nn %8phN pn %8phN " |
995 | "pn %02x%02x%02x%02x%02x%02x%02x%02x " | ||
996 | "port_id=%02x%02x%02x.\n", | 971 | "port_id=%02x%02x%02x.\n", |
997 | list[i].node_name[0], list[i].node_name[1], | 972 | list[i].node_name, list[i].port_name, |
998 | list[i].node_name[2], list[i].node_name[3], | ||
999 | list[i].node_name[4], list[i].node_name[5], | ||
1000 | list[i].node_name[6], list[i].node_name[7], | ||
1001 | list[i].port_name[0], list[i].port_name[1], | ||
1002 | list[i].port_name[2], list[i].port_name[3], | ||
1003 | list[i].port_name[4], list[i].port_name[5], | ||
1004 | list[i].port_name[6], list[i].port_name[7], | ||
1005 | list[i].d_id.b.domain, list[i].d_id.b.area, | 973 | list[i].d_id.b.domain, list[i].d_id.b.area, |
1006 | list[i].d_id.b.al_pa); | 974 | list[i].d_id.b.al_pa); |
1007 | } | 975 | } |
@@ -1321,11 +1289,7 @@ qla2x00_fdmi_rhba(scsi_qla_host_t *vha) | |||
1321 | size += 4 + WWN_SIZE; | 1289 | size += 4 + WWN_SIZE; |
1322 | 1290 | ||
1323 | ql_dbg(ql_dbg_disc, vha, 0x2025, | 1291 | ql_dbg(ql_dbg_disc, vha, 0x2025, |
1324 | "NodeName = %02x%02x%02x%02x%02x%02x%02x%02x.\n", | 1292 | "NodeName = %8phN.\n", eiter->a.node_name); |
1325 | eiter->a.node_name[0], eiter->a.node_name[1], | ||
1326 | eiter->a.node_name[2], eiter->a.node_name[3], | ||
1327 | eiter->a.node_name[4], eiter->a.node_name[5], | ||
1328 | eiter->a.node_name[6], eiter->a.node_name[7]); | ||
1329 | 1293 | ||
1330 | /* Manufacturer. */ | 1294 | /* Manufacturer. */ |
1331 | eiter = (struct ct_fdmi_hba_attr *) (entries + size); | 1295 | eiter = (struct ct_fdmi_hba_attr *) (entries + size); |
@@ -1428,16 +1392,8 @@ qla2x00_fdmi_rhba(scsi_qla_host_t *vha) | |||
1428 | qla2x00_update_ms_fdmi_iocb(vha, size + 16); | 1392 | qla2x00_update_ms_fdmi_iocb(vha, size + 16); |
1429 | 1393 | ||
1430 | ql_dbg(ql_dbg_disc, vha, 0x202e, | 1394 | ql_dbg(ql_dbg_disc, vha, 0x202e, |
1431 | "RHBA identifier = " | 1395 | "RHBA identifier = %8phN size=%d.\n", |
1432 | "%02x%02x%02x%02x%02x%02x%02x%02x size=%d.\n", | 1396 | ct_req->req.rhba.hba_identifier, size); |
1433 | ct_req->req.rhba.hba_identifier[0], | ||
1434 | ct_req->req.rhba.hba_identifier[1], | ||
1435 | ct_req->req.rhba.hba_identifier[2], | ||
1436 | ct_req->req.rhba.hba_identifier[3], | ||
1437 | ct_req->req.rhba.hba_identifier[4], | ||
1438 | ct_req->req.rhba.hba_identifier[5], | ||
1439 | ct_req->req.rhba.hba_identifier[6], | ||
1440 | ct_req->req.rhba.hba_identifier[7], size); | ||
1441 | ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2076, | 1397 | ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2076, |
1442 | entries, size); | 1398 | entries, size); |
1443 | 1399 | ||
@@ -1494,11 +1450,7 @@ qla2x00_fdmi_dhba(scsi_qla_host_t *vha) | |||
1494 | memcpy(ct_req->req.dhba.port_name, vha->port_name, WWN_SIZE); | 1450 | memcpy(ct_req->req.dhba.port_name, vha->port_name, WWN_SIZE); |
1495 | 1451 | ||
1496 | ql_dbg(ql_dbg_disc, vha, 0x2036, | 1452 | ql_dbg(ql_dbg_disc, vha, 0x2036, |
1497 | "DHBA portname = %02x%02x%02x%02x%02x%02x%02x%02x.\n", | 1453 | "DHBA portname = %8phN.\n", ct_req->req.dhba.port_name); |
1498 | ct_req->req.dhba.port_name[0], ct_req->req.dhba.port_name[1], | ||
1499 | ct_req->req.dhba.port_name[2], ct_req->req.dhba.port_name[3], | ||
1500 | ct_req->req.dhba.port_name[4], ct_req->req.dhba.port_name[5], | ||
1501 | ct_req->req.dhba.port_name[6], ct_req->req.dhba.port_name[7]); | ||
1502 | 1454 | ||
1503 | /* Execute MS IOCB */ | 1455 | /* Execute MS IOCB */ |
1504 | rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, | 1456 | rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, |
@@ -1678,12 +1630,7 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *vha) | |||
1678 | qla2x00_update_ms_fdmi_iocb(vha, size + 16); | 1630 | qla2x00_update_ms_fdmi_iocb(vha, size + 16); |
1679 | 1631 | ||
1680 | ql_dbg(ql_dbg_disc, vha, 0x203e, | 1632 | ql_dbg(ql_dbg_disc, vha, 0x203e, |
1681 | "RPA portname= %02x%02x%02x%02x%02X%02x%02x%02x size=%d.\n", | 1633 | "RPA portname= %8phN size=%d.\n", ct_req->req.rpa.port_name, size); |
1682 | ct_req->req.rpa.port_name[0], ct_req->req.rpa.port_name[1], | ||
1683 | ct_req->req.rpa.port_name[2], ct_req->req.rpa.port_name[3], | ||
1684 | ct_req->req.rpa.port_name[4], ct_req->req.rpa.port_name[5], | ||
1685 | ct_req->req.rpa.port_name[6], ct_req->req.rpa.port_name[7], | ||
1686 | size); | ||
1687 | ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2079, | 1634 | ql_dump_buffer(ql_dbg_disc + ql_dbg_buffer, vha, 0x2079, |
1688 | entries, size); | 1635 | entries, size); |
1689 | 1636 | ||
@@ -1940,16 +1887,8 @@ qla2x00_gpsc(scsi_qla_host_t *vha, sw_info_t *list) | |||
1940 | 1887 | ||
1941 | ql_dbg(ql_dbg_disc, vha, 0x205b, | 1888 | ql_dbg(ql_dbg_disc, vha, 0x205b, |
1942 | "GPSC ext entry - fpn " | 1889 | "GPSC ext entry - fpn " |
1943 | "%02x%02x%02x%02x%02x%02x%02x%02x speeds=%04x " | 1890 | "%8phN speeds=%04x speed=%04x.\n", |
1944 | "speed=%04x.\n", | 1891 | list[i].fabric_port_name, |
1945 | list[i].fabric_port_name[0], | ||
1946 | list[i].fabric_port_name[1], | ||
1947 | list[i].fabric_port_name[2], | ||
1948 | list[i].fabric_port_name[3], | ||
1949 | list[i].fabric_port_name[4], | ||
1950 | list[i].fabric_port_name[5], | ||
1951 | list[i].fabric_port_name[6], | ||
1952 | list[i].fabric_port_name[7], | ||
1953 | be16_to_cpu(ct_rsp->rsp.gpsc.speeds), | 1892 | be16_to_cpu(ct_rsp->rsp.gpsc.speeds), |
1954 | be16_to_cpu(ct_rsp->rsp.gpsc.speed)); | 1893 | be16_to_cpu(ct_rsp->rsp.gpsc.speed)); |
1955 | } | 1894 | } |
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index f2216ed2ad8c..d60e2c1ac442 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -564,12 +564,7 @@ qla2x00_initialize_adapter(scsi_qla_host_t *vha) | |||
564 | if (ha->flags.disable_serdes) { | 564 | if (ha->flags.disable_serdes) { |
565 | /* Mask HBA via NVRAM settings? */ | 565 | /* Mask HBA via NVRAM settings? */ |
566 | ql_log(ql_log_info, vha, 0x0077, | 566 | ql_log(ql_log_info, vha, 0x0077, |
567 | "Masking HBA WWPN " | 567 | "Masking HBA WWPN %8phN (via NVRAM).\n", vha->port_name); |
568 | "%02x%02x%02x%02x%02x%02x%02x%02x (via NVRAM).\n", | ||
569 | vha->port_name[0], vha->port_name[1], | ||
570 | vha->port_name[2], vha->port_name[3], | ||
571 | vha->port_name[4], vha->port_name[5], | ||
572 | vha->port_name[6], vha->port_name[7]); | ||
573 | return QLA_FUNCTION_FAILED; | 568 | return QLA_FUNCTION_FAILED; |
574 | } | 569 | } |
575 | 570 | ||
@@ -3061,22 +3056,13 @@ qla2x00_iidma_fcport(scsi_qla_host_t *vha, fc_port_t *fcport) | |||
3061 | mb); | 3056 | mb); |
3062 | if (rval != QLA_SUCCESS) { | 3057 | if (rval != QLA_SUCCESS) { |
3063 | ql_dbg(ql_dbg_disc, vha, 0x2004, | 3058 | ql_dbg(ql_dbg_disc, vha, 0x2004, |
3064 | "Unable to adjust iIDMA " | 3059 | "Unable to adjust iIDMA %8phN -- %04x %x %04x %04x.\n", |
3065 | "%02x%02x%02x%02x%02x%02x%02x%02x -- %04x %x %04x " | 3060 | fcport->port_name, rval, fcport->fp_speed, mb[0], mb[1]); |
3066 | "%04x.\n", fcport->port_name[0], fcport->port_name[1], | ||
3067 | fcport->port_name[2], fcport->port_name[3], | ||
3068 | fcport->port_name[4], fcport->port_name[5], | ||
3069 | fcport->port_name[6], fcport->port_name[7], rval, | ||
3070 | fcport->fp_speed, mb[0], mb[1]); | ||
3071 | } else { | 3061 | } else { |
3072 | ql_dbg(ql_dbg_disc, vha, 0x2005, | 3062 | ql_dbg(ql_dbg_disc, vha, 0x2005, |
3073 | "iIDMA adjusted to %s GB/s " | 3063 | "iIDMA adjusted to %s GB/s on %8phN.\n", |
3074 | "on %02x%02x%02x%02x%02x%02x%02x%02x.\n", | ||
3075 | qla2x00_get_link_speed_str(ha, fcport->fp_speed), | 3064 | qla2x00_get_link_speed_str(ha, fcport->fp_speed), |
3076 | fcport->port_name[0], fcport->port_name[1], | 3065 | fcport->port_name); |
3077 | fcport->port_name[2], fcport->port_name[3], | ||
3078 | fcport->port_name[4], fcport->port_name[5], | ||
3079 | fcport->port_name[6], fcport->port_name[7]); | ||
3080 | } | 3066 | } |
3081 | } | 3067 | } |
3082 | 3068 | ||
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 2d8e7b812352..e779506fda75 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
@@ -2212,16 +2212,13 @@ check_scsi_status: | |||
2212 | out: | 2212 | out: |
2213 | if (logit) | 2213 | if (logit) |
2214 | ql_dbg(ql_dbg_io, fcport->vha, 0x3022, | 2214 | ql_dbg(ql_dbg_io, fcport->vha, 0x3022, |
2215 | "FCP command status: 0x%x-0x%x (0x%x) " | 2215 | "FCP command status: 0x%x-0x%x (0x%x) nexus=%ld:%d:%d " |
2216 | "nexus=%ld:%d:%d portid=%02x%02x%02x oxid=0x%x " | 2216 | "portid=%02x%02x%02x oxid=0x%x cdb=%10phN len=0x%x " |
2217 | "cdb=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x len=0x%x " | ||
2218 | "rsp_info=0x%x resid=0x%x fw_resid=0x%x.\n", | 2217 | "rsp_info=0x%x resid=0x%x fw_resid=0x%x.\n", |
2219 | comp_status, scsi_status, res, vha->host_no, | 2218 | comp_status, scsi_status, res, vha->host_no, |
2220 | cp->device->id, cp->device->lun, fcport->d_id.b.domain, | 2219 | cp->device->id, cp->device->lun, fcport->d_id.b.domain, |
2221 | fcport->d_id.b.area, fcport->d_id.b.al_pa, ox_id, | 2220 | fcport->d_id.b.area, fcport->d_id.b.al_pa, ox_id, |
2222 | cp->cmnd[0], cp->cmnd[1], cp->cmnd[2], cp->cmnd[3], | 2221 | cp->cmnd, scsi_bufflen(cp), rsp_info_len, |
2223 | cp->cmnd[4], cp->cmnd[5], cp->cmnd[6], cp->cmnd[7], | ||
2224 | cp->cmnd[8], cp->cmnd[9], scsi_bufflen(cp), rsp_info_len, | ||
2225 | resid_len, fw_resid_len); | 2222 | resid_len, fw_resid_len); |
2226 | 2223 | ||
2227 | if (!res) | 2224 | if (!res) |
diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c index d7993797f46e..413f05021bd6 100644 --- a/drivers/scsi/qla2xxx/qla_mr.c +++ b/drivers/scsi/qla2xxx/qla_mr.c | |||
@@ -2526,16 +2526,13 @@ check_scsi_status: | |||
2526 | 2526 | ||
2527 | if (logit) | 2527 | if (logit) |
2528 | ql_dbg(ql_dbg_io, fcport->vha, 0x3058, | 2528 | ql_dbg(ql_dbg_io, fcport->vha, 0x3058, |
2529 | "FCP command status: 0x%x-0x%x (0x%x) " | 2529 | "FCP command status: 0x%x-0x%x (0x%x) nexus=%ld:%d:%d " |
2530 | "nexus=%ld:%d:%d tgt_id: 0x%x lscsi_status: 0x%x" | 2530 | "tgt_id: 0x%x lscsi_status: 0x%x cdb=%10phN len=0x%x " |
2531 | "cdb=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x len=0x%x " | 2531 | "rsp_info=0x%x resid=0x%x fw_resid=0x%x sense_len=0x%x, " |
2532 | "rsp_info=0x%x resid=0x%x fw_resid=0x%x " | 2532 | "par_sense_len=0x%x, rsp_info_len=0x%x\n", |
2533 | "sense_len=0x%x, par_sense_len=0x%x, rsp_info_len=0x%x\n", | ||
2534 | comp_status, scsi_status, res, vha->host_no, | 2533 | comp_status, scsi_status, res, vha->host_no, |
2535 | cp->device->id, cp->device->lun, fcport->tgt_id, | 2534 | cp->device->id, cp->device->lun, fcport->tgt_id, |
2536 | lscsi_status, cp->cmnd[0], cp->cmnd[1], cp->cmnd[2], | 2535 | lscsi_status, cp->cmnd, scsi_bufflen(cp), |
2537 | cp->cmnd[3], cp->cmnd[4], cp->cmnd[5], cp->cmnd[6], | ||
2538 | cp->cmnd[7], cp->cmnd[8], cp->cmnd[9], scsi_bufflen(cp), | ||
2539 | rsp_info_len, resid_len, fw_resid_len, sense_len, | 2536 | rsp_info_len, resid_len, fw_resid_len, sense_len, |
2540 | par_sense_len, rsp_info_len); | 2537 | par_sense_len, rsp_info_len); |
2541 | 2538 | ||
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 3e21e9fc9d91..9207aeb3cdbe 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -3210,14 +3210,8 @@ void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport, | |||
3210 | set_bit(RELOGIN_NEEDED, &vha->dpc_flags); | 3210 | set_bit(RELOGIN_NEEDED, &vha->dpc_flags); |
3211 | 3211 | ||
3212 | ql_dbg(ql_dbg_disc, vha, 0x2067, | 3212 | ql_dbg(ql_dbg_disc, vha, 0x2067, |
3213 | "Port login retry " | 3213 | "Port login retry %8phN, id = 0x%04x retry cnt=%d.\n", |
3214 | "%02x%02x%02x%02x%02x%02x%02x%02x, " | 3214 | fcport->port_name, fcport->loop_id, fcport->login_retry); |
3215 | "id = 0x%04x retry cnt=%d.\n", | ||
3216 | fcport->port_name[0], fcport->port_name[1], | ||
3217 | fcport->port_name[2], fcport->port_name[3], | ||
3218 | fcport->port_name[4], fcport->port_name[5], | ||
3219 | fcport->port_name[6], fcport->port_name[7], | ||
3220 | fcport->loop_id, fcport->login_retry); | ||
3221 | } | 3215 | } |
3222 | } | 3216 | } |
3223 | 3217 | ||
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 83a8f7a9ec76..ff12d4677cc4 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c | |||
@@ -430,13 +430,8 @@ static int qlt_reset(struct scsi_qla_host *vha, void *iocb, int mcmd) | |||
430 | } | 430 | } |
431 | 431 | ||
432 | ql_dbg(ql_dbg_tgt, vha, 0xe047, | 432 | ql_dbg(ql_dbg_tgt, vha, 0xe047, |
433 | "scsi(%ld): resetting (session %p from port " | 433 | "scsi(%ld): resetting (session %p from port %8phC mcmd %x, " |
434 | "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x, " | 434 | "loop_id %d)\n", vha->host_no, sess, sess->port_name, |
435 | "mcmd %x, loop_id %d)\n", vha->host_no, sess, | ||
436 | sess->port_name[0], sess->port_name[1], | ||
437 | sess->port_name[2], sess->port_name[3], | ||
438 | sess->port_name[4], sess->port_name[5], | ||
439 | sess->port_name[6], sess->port_name[7], | ||
440 | mcmd, loop_id); | 435 | mcmd, loop_id); |
441 | 436 | ||
442 | lun = a->u.isp24.fcp_cmnd.lun; | 437 | lun = a->u.isp24.fcp_cmnd.lun; |
@@ -467,15 +462,10 @@ static void qlt_schedule_sess_for_deletion(struct qla_tgt_sess *sess, | |||
467 | sess->expires = jiffies + dev_loss_tmo * HZ; | 462 | sess->expires = jiffies + dev_loss_tmo * HZ; |
468 | 463 | ||
469 | ql_dbg(ql_dbg_tgt, sess->vha, 0xe048, | 464 | ql_dbg(ql_dbg_tgt, sess->vha, 0xe048, |
470 | "qla_target(%d): session for port %02x:%02x:%02x:" | 465 | "qla_target(%d): session for port %8phC (loop ID %d) scheduled for " |
471 | "%02x:%02x:%02x:%02x:%02x (loop ID %d) scheduled for " | ||
472 | "deletion in %u secs (expires: %lu) immed: %d\n", | 466 | "deletion in %u secs (expires: %lu) immed: %d\n", |
473 | sess->vha->vp_idx, | 467 | sess->vha->vp_idx, sess->port_name, sess->loop_id, dev_loss_tmo, |
474 | sess->port_name[0], sess->port_name[1], | 468 | sess->expires, immediate); |
475 | sess->port_name[2], sess->port_name[3], | ||
476 | sess->port_name[4], sess->port_name[5], | ||
477 | sess->port_name[6], sess->port_name[7], | ||
478 | sess->loop_id, dev_loss_tmo, sess->expires, immediate); | ||
479 | 469 | ||
480 | if (immediate) | 470 | if (immediate) |
481 | schedule_delayed_work(&tgt->sess_del_work, 0); | 471 | schedule_delayed_work(&tgt->sess_del_work, 0); |
@@ -630,13 +620,9 @@ static struct qla_tgt_sess *qlt_create_sess( | |||
630 | sess = kzalloc(sizeof(*sess), GFP_KERNEL); | 620 | sess = kzalloc(sizeof(*sess), GFP_KERNEL); |
631 | if (!sess) { | 621 | if (!sess) { |
632 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04a, | 622 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04a, |
633 | "qla_target(%u): session allocation failed, " | 623 | "qla_target(%u): session allocation failed, all commands " |
634 | "all commands from port %02x:%02x:%02x:%02x:" | 624 | "from port %8phC will be refused", vha->vp_idx, |
635 | "%02x:%02x:%02x:%02x will be refused", vha->vp_idx, | 625 | fcport->port_name); |
636 | fcport->port_name[0], fcport->port_name[1], | ||
637 | fcport->port_name[2], fcport->port_name[3], | ||
638 | fcport->port_name[4], fcport->port_name[5], | ||
639 | fcport->port_name[6], fcport->port_name[7]); | ||
640 | 626 | ||
641 | return NULL; | 627 | return NULL; |
642 | } | 628 | } |
@@ -680,15 +666,11 @@ static struct qla_tgt_sess *qlt_create_sess( | |||
680 | spin_unlock_irqrestore(&ha->hardware_lock, flags); | 666 | spin_unlock_irqrestore(&ha->hardware_lock, flags); |
681 | 667 | ||
682 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04b, | 668 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04b, |
683 | "qla_target(%d): %ssession for wwn %02x:%02x:%02x:%02x:" | 669 | "qla_target(%d): %ssession for wwn %8phC (loop_id %d, " |
684 | "%02x:%02x:%02x:%02x (loop_id %d, s_id %x:%x:%x, confirmed" | 670 | "s_id %x:%x:%x, confirmed completion %ssupported) added\n", |
685 | " completion %ssupported) added\n", | 671 | vha->vp_idx, local ? "local " : "", fcport->port_name, |
686 | vha->vp_idx, local ? "local " : "", fcport->port_name[0], | 672 | fcport->loop_id, sess->s_id.b.domain, sess->s_id.b.area, |
687 | fcport->port_name[1], fcport->port_name[2], fcport->port_name[3], | 673 | sess->s_id.b.al_pa, sess->conf_compl_supported ? "" : "not "); |
688 | fcport->port_name[4], fcport->port_name[5], fcport->port_name[6], | ||
689 | fcport->port_name[7], fcport->loop_id, sess->s_id.b.domain, | ||
690 | sess->s_id.b.area, sess->s_id.b.al_pa, sess->conf_compl_supported ? | ||
691 | "" : "not "); | ||
692 | 674 | ||
693 | return sess; | 675 | return sess; |
694 | } | 676 | } |
@@ -730,13 +712,9 @@ void qlt_fc_port_added(struct scsi_qla_host *vha, fc_port_t *fcport) | |||
730 | qlt_undelete_sess(sess); | 712 | qlt_undelete_sess(sess); |
731 | 713 | ||
732 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04c, | 714 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04c, |
733 | "qla_target(%u): %ssession for port %02x:" | 715 | "qla_target(%u): %ssession for port %8phC " |
734 | "%02x:%02x:%02x:%02x:%02x:%02x:%02x (loop ID %d) " | 716 | "(loop ID %d) reappeared\n", vha->vp_idx, |
735 | "reappeared\n", vha->vp_idx, sess->local ? "local " | 717 | sess->local ? "local " : "", sess->port_name, |
736 | : "", sess->port_name[0], sess->port_name[1], | ||
737 | sess->port_name[2], sess->port_name[3], | ||
738 | sess->port_name[4], sess->port_name[5], | ||
739 | sess->port_name[6], sess->port_name[7], | ||
740 | sess->loop_id); | 718 | sess->loop_id); |
741 | 719 | ||
742 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf007, | 720 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf007, |
@@ -749,13 +727,8 @@ void qlt_fc_port_added(struct scsi_qla_host *vha, fc_port_t *fcport) | |||
749 | if (sess && sess->local) { | 727 | if (sess && sess->local) { |
750 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04d, | 728 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04d, |
751 | "qla_target(%u): local session for " | 729 | "qla_target(%u): local session for " |
752 | "port %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x " | 730 | "port %8phC (loop ID %d) became global\n", vha->vp_idx, |
753 | "(loop ID %d) became global\n", vha->vp_idx, | 731 | fcport->port_name, sess->loop_id); |
754 | fcport->port_name[0], fcport->port_name[1], | ||
755 | fcport->port_name[2], fcport->port_name[3], | ||
756 | fcport->port_name[4], fcport->port_name[5], | ||
757 | fcport->port_name[6], fcport->port_name[7], | ||
758 | sess->loop_id); | ||
759 | sess->local = 0; | 732 | sess->local = 0; |
760 | } | 733 | } |
761 | ha->tgt.tgt_ops->put_sess(sess); | 734 | ha->tgt.tgt_ops->put_sess(sess); |
@@ -2840,10 +2813,8 @@ static int qlt_24xx_handle_els(struct scsi_qla_host *vha, | |||
2840 | int res = 0; | 2813 | int res = 0; |
2841 | 2814 | ||
2842 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf026, | 2815 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf026, |
2843 | "qla_target(%d): Port ID: 0x%02x:%02x:%02x" | 2816 | "qla_target(%d): Port ID: 0x%3phC ELS opcode: 0x%02x\n", |
2844 | " ELS opcode: 0x%02x\n", vha->vp_idx, iocb->u.isp24.port_id[0], | 2817 | vha->vp_idx, iocb->u.isp24.port_id, iocb->u.isp24.status_subcode); |
2845 | iocb->u.isp24.port_id[1], iocb->u.isp24.port_id[2], | ||
2846 | iocb->u.isp24.status_subcode); | ||
2847 | 2818 | ||
2848 | switch (iocb->u.isp24.status_subcode) { | 2819 | switch (iocb->u.isp24.status_subcode) { |
2849 | case ELS_PLOGI: | 2820 | case ELS_PLOGI: |
diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c b/drivers/scsi/qla2xxx/tcm_qla2xxx.c index a318092e033f..a6da313e253b 100644 --- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c +++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c | |||
@@ -1474,15 +1474,11 @@ static void tcm_qla2xxx_update_sess(struct qla_tgt_sess *sess, port_id_t s_id, | |||
1474 | 1474 | ||
1475 | 1475 | ||
1476 | if (sess->loop_id != loop_id || sess->s_id.b24 != s_id.b24) | 1476 | if (sess->loop_id != loop_id || sess->s_id.b24 != s_id.b24) |
1477 | pr_info("Updating session %p from port %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x loop_id %d -> %d s_id %x:%x:%x -> %x:%x:%x\n", | 1477 | pr_info("Updating session %p from port %8phC loop_id %d -> %d s_id %x:%x:%x -> %x:%x:%x\n", |
1478 | sess, | 1478 | sess, sess->port_name, |
1479 | sess->port_name[0], sess->port_name[1], | 1479 | sess->loop_id, loop_id, sess->s_id.b.domain, |
1480 | sess->port_name[2], sess->port_name[3], | 1480 | sess->s_id.b.area, sess->s_id.b.al_pa, s_id.b.domain, |
1481 | sess->port_name[4], sess->port_name[5], | 1481 | s_id.b.area, s_id.b.al_pa); |
1482 | sess->port_name[6], sess->port_name[7], | ||
1483 | sess->loop_id, loop_id, | ||
1484 | sess->s_id.b.domain, sess->s_id.b.area, sess->s_id.b.al_pa, | ||
1485 | s_id.b.domain, s_id.b.area, s_id.b.al_pa); | ||
1486 | 1482 | ||
1487 | if (sess->loop_id != loop_id) { | 1483 | if (sess->loop_id != loop_id) { |
1488 | /* | 1484 | /* |