diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2007-05-08 05:14:41 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-08 12:55:02 -0400 |
commit | 1d589edf9eeb60c9c8e62753d05cf4c8e094e5a7 (patch) | |
tree | a87107776a15e1ff0df252f9a0e818321c3b8dcb /drivers/s390/scsi/zfcp_erp.c | |
parent | 463fc696ed723a9d854113e370cc177b0b63de42 (diff) |
[SCSI] zfcp: print S_ID and D_ID with 3 bytes
S_ID and D_ID are defined in the FCP spec as 3 byte fields.
Change the output in zfcp print statements accordingly to print
them with only 3 bytes.
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_erp.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_erp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c index c1f2d4b14c2b..f326bbe49fa7 100644 --- a/drivers/s390/scsi/zfcp_erp.c +++ b/drivers/s390/scsi/zfcp_erp.c | |||
@@ -342,9 +342,9 @@ zfcp_erp_adisc(struct zfcp_port *port) | |||
342 | adisc->wwpn = fc_host_port_name(adapter->scsi_host); | 342 | adisc->wwpn = fc_host_port_name(adapter->scsi_host); |
343 | adisc->wwnn = fc_host_node_name(adapter->scsi_host); | 343 | adisc->wwnn = fc_host_node_name(adapter->scsi_host); |
344 | adisc->nport_id = fc_host_port_id(adapter->scsi_host); | 344 | adisc->nport_id = fc_host_port_id(adapter->scsi_host); |
345 | ZFCP_LOG_INFO("ADISC request from s_id 0x%08x to d_id 0x%08x " | 345 | ZFCP_LOG_INFO("ADISC request from s_id 0x%06x to d_id 0x%06x " |
346 | "(wwpn=0x%016Lx, wwnn=0x%016Lx, " | 346 | "(wwpn=0x%016Lx, wwnn=0x%016Lx, " |
347 | "hard_nport_id=0x%08x, nport_id=0x%08x)\n", | 347 | "hard_nport_id=0x%06x, nport_id=0x%06x)\n", |
348 | adisc->nport_id, send_els->d_id, (wwn_t) adisc->wwpn, | 348 | adisc->nport_id, send_els->d_id, (wwn_t) adisc->wwpn, |
349 | (wwn_t) adisc->wwnn, adisc->hard_nport_id, | 349 | (wwn_t) adisc->wwnn, adisc->hard_nport_id, |
350 | adisc->nport_id); | 350 | adisc->nport_id); |
@@ -352,7 +352,7 @@ zfcp_erp_adisc(struct zfcp_port *port) | |||
352 | retval = zfcp_fsf_send_els(send_els); | 352 | retval = zfcp_fsf_send_els(send_els); |
353 | if (retval != 0) { | 353 | if (retval != 0) { |
354 | ZFCP_LOG_NORMAL("error: initiation of Send ELS failed for port " | 354 | ZFCP_LOG_NORMAL("error: initiation of Send ELS failed for port " |
355 | "0x%08x on adapter %s\n", send_els->d_id, | 355 | "0x%06x on adapter %s\n", send_els->d_id, |
356 | zfcp_get_busid_by_adapter(adapter)); | 356 | zfcp_get_busid_by_adapter(adapter)); |
357 | goto freemem; | 357 | goto freemem; |
358 | } | 358 | } |
@@ -398,7 +398,7 @@ zfcp_erp_adisc_handler(unsigned long data) | |||
398 | if (send_els->status != 0) { | 398 | if (send_els->status != 0) { |
399 | ZFCP_LOG_NORMAL("ELS request rejected/timed out, " | 399 | ZFCP_LOG_NORMAL("ELS request rejected/timed out, " |
400 | "force physical port reopen " | 400 | "force physical port reopen " |
401 | "(adapter %s, port d_id=0x%08x)\n", | 401 | "(adapter %s, port d_id=0x%06x)\n", |
402 | zfcp_get_busid_by_adapter(adapter), d_id); | 402 | zfcp_get_busid_by_adapter(adapter), d_id); |
403 | debug_text_event(adapter->erp_dbf, 3, "forcreop"); | 403 | debug_text_event(adapter->erp_dbf, 3, "forcreop"); |
404 | if (zfcp_erp_port_forced_reopen(port, 0)) | 404 | if (zfcp_erp_port_forced_reopen(port, 0)) |
@@ -411,9 +411,9 @@ zfcp_erp_adisc_handler(unsigned long data) | |||
411 | 411 | ||
412 | adisc = zfcp_sg_to_address(send_els->resp); | 412 | adisc = zfcp_sg_to_address(send_els->resp); |
413 | 413 | ||
414 | ZFCP_LOG_INFO("ADISC response from d_id 0x%08x to s_id " | 414 | ZFCP_LOG_INFO("ADISC response from d_id 0x%06x to s_id " |
415 | "0x%08x (wwpn=0x%016Lx, wwnn=0x%016Lx, " | 415 | "0x%06x (wwpn=0x%016Lx, wwnn=0x%016Lx, " |
416 | "hard_nport_id=0x%08x, nport_id=0x%08x)\n", | 416 | "hard_nport_id=0x%06x, nport_id=0x%06x)\n", |
417 | d_id, fc_host_port_id(adapter->scsi_host), | 417 | d_id, fc_host_port_id(adapter->scsi_host), |
418 | (wwn_t) adisc->wwpn, (wwn_t) adisc->wwnn, | 418 | (wwn_t) adisc->wwpn, (wwn_t) adisc->wwnn, |
419 | adisc->hard_nport_id, adisc->nport_id); | 419 | adisc->hard_nport_id, adisc->nport_id); |
@@ -1377,7 +1377,7 @@ zfcp_erp_port_failed(struct zfcp_port *port) | |||
1377 | 1377 | ||
1378 | if (atomic_test_mask(ZFCP_STATUS_PORT_WKA, &port->status)) | 1378 | if (atomic_test_mask(ZFCP_STATUS_PORT_WKA, &port->status)) |
1379 | ZFCP_LOG_NORMAL("port erp failed (adapter %s, " | 1379 | ZFCP_LOG_NORMAL("port erp failed (adapter %s, " |
1380 | "port d_id=0x%08x)\n", | 1380 | "port d_id=0x%06x)\n", |
1381 | zfcp_get_busid_by_port(port), port->d_id); | 1381 | zfcp_get_busid_by_port(port), port->d_id); |
1382 | else | 1382 | else |
1383 | ZFCP_LOG_NORMAL("port erp failed (adapter %s, wwpn=0x%016Lx)\n", | 1383 | ZFCP_LOG_NORMAL("port erp failed (adapter %s, wwpn=0x%016Lx)\n", |
@@ -2401,7 +2401,7 @@ zfcp_erp_port_strategy_open_common(struct zfcp_erp_action *erp_action) | |||
2401 | retval = ZFCP_ERP_FAILED; | 2401 | retval = ZFCP_ERP_FAILED; |
2402 | } | 2402 | } |
2403 | } else { | 2403 | } else { |
2404 | ZFCP_LOG_DEBUG("port 0x%016Lx has d_id=0x%08x -> " | 2404 | ZFCP_LOG_DEBUG("port 0x%016Lx has d_id=0x%06x -> " |
2405 | "trying open\n", port->wwpn, port->d_id); | 2405 | "trying open\n", port->wwpn, port->d_id); |
2406 | retval = zfcp_erp_port_strategy_open_port(erp_action); | 2406 | retval = zfcp_erp_port_strategy_open_port(erp_action); |
2407 | } | 2407 | } |
@@ -2441,7 +2441,7 @@ zfcp_erp_port_strategy_open_nameserver(struct zfcp_erp_action *erp_action) | |||
2441 | case ZFCP_ERP_STEP_UNINITIALIZED: | 2441 | case ZFCP_ERP_STEP_UNINITIALIZED: |
2442 | case ZFCP_ERP_STEP_PHYS_PORT_CLOSING: | 2442 | case ZFCP_ERP_STEP_PHYS_PORT_CLOSING: |
2443 | case ZFCP_ERP_STEP_PORT_CLOSING: | 2443 | case ZFCP_ERP_STEP_PORT_CLOSING: |
2444 | ZFCP_LOG_DEBUG("port 0x%016Lx has d_id=0x%08x -> trying open\n", | 2444 | ZFCP_LOG_DEBUG("port 0x%016Lx has d_id=0x%06x -> trying open\n", |
2445 | port->wwpn, port->d_id); | 2445 | port->wwpn, port->d_id); |
2446 | retval = zfcp_erp_port_strategy_open_port(erp_action); | 2446 | retval = zfcp_erp_port_strategy_open_port(erp_action); |
2447 | break; | 2447 | break; |