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_fsf.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_fsf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index bd4d71cdcace..1c47c495d69d 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c | |||
@@ -2156,12 +2156,7 @@ static void zfcp_fsf_send_fcp_command_task_handler(struct zfcp_fsf_req *req) | |||
2156 | zfcp_fsf_req_trace(req, scpnt); | 2156 | zfcp_fsf_req_trace(req, scpnt); |
2157 | 2157 | ||
2158 | skip_fsfstatus: | 2158 | skip_fsfstatus: |
2159 | if (scpnt->result != 0) | 2159 | zfcp_dbf_scsi_result(req->adapter->dbf, scpnt, req); |
2160 | zfcp_dbf_scsi_result("erro", 3, req->adapter->dbf, scpnt, req); | ||
2161 | else if (scpnt->retries > 0) | ||
2162 | zfcp_dbf_scsi_result("retr", 4, req->adapter->dbf, scpnt, req); | ||
2163 | else | ||
2164 | zfcp_dbf_scsi_result("norm", 6, req->adapter->dbf, scpnt, req); | ||
2165 | 2160 | ||
2166 | scpnt->host_scribble = NULL; | 2161 | scpnt->host_scribble = NULL; |
2167 | (scpnt->scsi_done) (scpnt); | 2162 | (scpnt->scsi_done) (scpnt); |