diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2010-02-17 05:18:57 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-02-17 18:46:31 -0500 |
commit | ab72528a4498251a702fa7693b51b9311b2432f8 (patch) | |
tree | 3413362ef1838a6ddbf2ab6316685a18c547ba66 /drivers/s390/scsi/zfcp_scsi.c | |
parent | 615f59e0daaf56e43dcaaf3ea228967d9bc21584 (diff) |
[SCSI] zfcp: Move scsi result tracing decision to zfcp_dbf.h
Move the decision which trace tag and trace level to use for the scsi
result trace to zfcp_dbf.h. zfcp_dbf_scsi_result is already an inline
function, so move the trace code there, simplifying the response
handling in zfcp_fsf.c.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_scsi.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index 0d580b2fc4da..c3c4178888af 100644 --- a/drivers/s390/scsi/zfcp_scsi.c +++ b/drivers/s390/scsi/zfcp_scsi.c | |||
@@ -62,7 +62,7 @@ static void zfcp_scsi_command_fail(struct scsi_cmnd *scpnt, int result) | |||
62 | (struct zfcp_adapter *) scpnt->device->host->hostdata[0]; | 62 | (struct zfcp_adapter *) scpnt->device->host->hostdata[0]; |
63 | 63 | ||
64 | set_host_byte(scpnt, result); | 64 | set_host_byte(scpnt, result); |
65 | zfcp_dbf_scsi_result("fail", 4, adapter->dbf, scpnt, NULL); | 65 | zfcp_dbf_scsi_fail_send(adapter->dbf, scpnt); |
66 | scpnt->scsi_done(scpnt); | 66 | scpnt->scsi_done(scpnt); |
67 | } | 67 | } |
68 | 68 | ||
@@ -89,7 +89,7 @@ static int zfcp_scsi_queuecommand(struct scsi_cmnd *scpnt, | |||
89 | scsi_result = fc_remote_port_chkready(rport); | 89 | scsi_result = fc_remote_port_chkready(rport); |
90 | if (unlikely(scsi_result)) { | 90 | if (unlikely(scsi_result)) { |
91 | scpnt->result = scsi_result; | 91 | scpnt->result = scsi_result; |
92 | zfcp_dbf_scsi_result("fail", 4, adapter->dbf, scpnt, NULL); | 92 | zfcp_dbf_scsi_fail_send(adapter->dbf, scpnt); |
93 | scpnt->scsi_done(scpnt); | 93 | scpnt->scsi_done(scpnt); |
94 | return 0; | 94 | return 0; |
95 | } | 95 | } |