Skip to content

Commit 6dc6a94

Browse files
Tyrel Datwylermartinkpetersen
authored andcommitted
scsi: ibmvfc: Remove "failed" from logged errors
The text of messages logged with ibmvfc_log_error() always contain the term "failed". In the case of cancelled commands during EH they are reported back by the VIOS using error codes. This can be confusing to somebody looking at these log messages as to whether a command was successfully cancelled. The following real log message for example it is unclear if the transaction was actaully cancelled. <6>sd 0:0:1:1: Cancelling outstanding commands. <3>sd 0:0:1:1: [sde] Command (28) failed: transaction cancelled (2:6) flags: 0 fcp_rsp: 0, resid=0, scsi_status: 0 Remove prefixing of "failed" to all error logged messages. The ibmvfc_log_error() function translates the returned error/status codes to a human readable message already. Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent c820657 commit 6dc6a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/ibmvscsi/ibmvfc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ static void ibmvfc_log_error(struct ibmvfc_event *evt)
14941494
if (rsp->flags & FCP_RSP_LEN_VALID)
14951495
rsp_code = rsp->data.info.rsp_code;
14961496

1497-
scmd_printk(KERN_ERR, cmnd, "Command (%02X) failed: %s (%x:%x) "
1497+
scmd_printk(KERN_ERR, cmnd, "Command (%02X) : %s (%x:%x) "
14981498
"flags: %x fcp_rsp: %x, resid=%d, scsi_status: %x\n",
14991499
cmnd->cmnd[0], err, vfc_cmd->status, vfc_cmd->error,
15001500
rsp->flags, rsp_code, scsi_get_resid(cmnd), rsp->scsi_status);

0 commit comments

Comments
 (0)