[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 <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
Родитель
aee6ef1859
Коммит
ec258fe4b7
|
@ -2036,21 +2036,21 @@ zfcp_fsf_exchange_config_evaluate(struct zfcp_fsf_req *fsf_req, int xchg_ok)
|
||||||
min(FC_SERIAL_NUMBER_SIZE, 17));
|
min(FC_SERIAL_NUMBER_SIZE, 17));
|
||||||
}
|
}
|
||||||
|
|
||||||
ZFCP_LOG_NORMAL("The adapter %s reported the following "
|
if (fsf_req->erp_action)
|
||||||
"characteristics:\n"
|
ZFCP_LOG_NORMAL("The adapter %s reported the following "
|
||||||
"WWNN 0x%016Lx, "
|
"characteristics:\n"
|
||||||
"WWPN 0x%016Lx, "
|
"WWNN 0x%016Lx, WWPN 0x%016Lx, "
|
||||||
"S_ID 0x%06x,\n"
|
"S_ID 0x%06x,\n"
|
||||||
"adapter version 0x%x, "
|
"adapter version 0x%x, "
|
||||||
"LIC version 0x%x, "
|
"LIC version 0x%x, "
|
||||||
"FC link speed %d Gb/s\n",
|
"FC link speed %d Gb/s\n",
|
||||||
zfcp_get_busid_by_adapter(adapter),
|
zfcp_get_busid_by_adapter(adapter),
|
||||||
(wwn_t) fc_host_node_name(shost),
|
(wwn_t) fc_host_node_name(shost),
|
||||||
(wwn_t) fc_host_port_name(shost),
|
(wwn_t) fc_host_port_name(shost),
|
||||||
fc_host_port_id(shost),
|
fc_host_port_id(shost),
|
||||||
adapter->hydra_version,
|
adapter->hydra_version,
|
||||||
adapter->fsf_lic_version,
|
adapter->fsf_lic_version,
|
||||||
fc_host_speed(shost));
|
fc_host_speed(shost));
|
||||||
if (ZFCP_QTCB_VERSION < bottom->low_qtcb_version) {
|
if (ZFCP_QTCB_VERSION < bottom->low_qtcb_version) {
|
||||||
ZFCP_LOG_NORMAL("error: the adapter %s "
|
ZFCP_LOG_NORMAL("error: the adapter %s "
|
||||||
"only supports newer control block "
|
"only supports newer control block "
|
||||||
|
@ -2115,8 +2115,10 @@ zfcp_fsf_exchange_config_data_handler(struct zfcp_fsf_req *fsf_req)
|
||||||
zfcp_erp_adapter_shutdown(adapter, 0, 127, fsf_req);
|
zfcp_erp_adapter_shutdown(adapter, 0, 127, fsf_req);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
case FC_PORTTYPE_NPORT:
|
case FC_PORTTYPE_NPORT:
|
||||||
ZFCP_LOG_NORMAL("Switched fabric fibrechannel "
|
if (fsf_req->erp_action)
|
||||||
"network detected at adapter %s.\n",
|
ZFCP_LOG_NORMAL("Switched fabric fibrechannel "
|
||||||
|
"network detected at adapter "
|
||||||
|
"%s.\n",
|
||||||
zfcp_get_busid_by_adapter(adapter));
|
zfcp_get_busid_by_adapter(adapter));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче