Skip to content

Commit ec258fe

Browse files
sswenJames Bottomley
authored andcommitted
[SCSI] zfcp: Print some messages only during ERP
When statistics are polled from sysfs, the statistics use the same commands as the adapter initialization. Change the messages printed here, so they are only printed during initialization and not for each poll of adapter data. Signed-off-by: Swen Schillig <[email protected]> Signed-off-by: Christof Schmitt <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent aee6ef1 commit ec258fe

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

drivers/s390/scsi/zfcp_fsf.c

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,21 +2036,21 @@ zfcp_fsf_exchange_config_evaluate(struct zfcp_fsf_req *fsf_req, int xchg_ok)
20362036
min(FC_SERIAL_NUMBER_SIZE, 17));
20372037
}
20382038

2039-
ZFCP_LOG_NORMAL("The adapter %s reported the following "
2040-
"characteristics:\n"
2041-
"WWNN 0x%016Lx, "
2042-
"WWPN 0x%016Lx, "
2043-
"S_ID 0x%06x,\n"
2044-
"adapter version 0x%x, "
2045-
"LIC version 0x%x, "
2046-
"FC link speed %d Gb/s\n",
2047-
zfcp_get_busid_by_adapter(adapter),
2048-
(wwn_t) fc_host_node_name(shost),
2049-
(wwn_t) fc_host_port_name(shost),
2050-
fc_host_port_id(shost),
2051-
adapter->hydra_version,
2052-
adapter->fsf_lic_version,
2053-
fc_host_speed(shost));
2039+
if (fsf_req->erp_action)
2040+
ZFCP_LOG_NORMAL("The adapter %s reported the following "
2041+
"characteristics:\n"
2042+
"WWNN 0x%016Lx, WWPN 0x%016Lx, "
2043+
"S_ID 0x%06x,\n"
2044+
"adapter version 0x%x, "
2045+
"LIC version 0x%x, "
2046+
"FC link speed %d Gb/s\n",
2047+
zfcp_get_busid_by_adapter(adapter),
2048+
(wwn_t) fc_host_node_name(shost),
2049+
(wwn_t) fc_host_port_name(shost),
2050+
fc_host_port_id(shost),
2051+
adapter->hydra_version,
2052+
adapter->fsf_lic_version,
2053+
fc_host_speed(shost));
20542054
if (ZFCP_QTCB_VERSION < bottom->low_qtcb_version) {
20552055
ZFCP_LOG_NORMAL("error: the adapter %s "
20562056
"only supports newer control block "
@@ -2115,8 +2115,10 @@ zfcp_fsf_exchange_config_data_handler(struct zfcp_fsf_req *fsf_req)
21152115
zfcp_erp_adapter_shutdown(adapter, 0, 127, fsf_req);
21162116
return -EIO;
21172117
case FC_PORTTYPE_NPORT:
2118-
ZFCP_LOG_NORMAL("Switched fabric fibrechannel "
2119-
"network detected at adapter %s.\n",
2118+
if (fsf_req->erp_action)
2119+
ZFCP_LOG_NORMAL("Switched fabric fibrechannel "
2120+
"network detected at adapter "
2121+
"%s.\n",
21202122
zfcp_get_busid_by_adapter(adapter));
21212123
break;
21222124
default:

0 commit comments

Comments
 (0)