Commit 7d88d5df authored by Daniel Wagner's avatar Daniel Wagner Committed by Martin K. Petersen

scsi: qla2xxx: Log calling function name in qla2x00_get_sp_from_handle()

Commit 7c3df132 ("[SCSI] qla2xxx: Code changes to support new dynamic
logging infrastructure.") removed the use of the func argument. Let's add
it back.

Link: https://lore.kernel.org/r/20200908081516.8561-4-dwagner@suse.deReviewed-by: default avatarArun Easi <aeasi@marvell.com>
Signed-off-by: default avatarDaniel Wagner <dwagner@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 622299f1
...@@ -1722,8 +1722,8 @@ qla2x00_get_sp_from_handle(scsi_qla_host_t *vha, const char *func, ...@@ -1722,8 +1722,8 @@ qla2x00_get_sp_from_handle(scsi_qla_host_t *vha, const char *func,
index = LSW(pkt->handle); index = LSW(pkt->handle);
if (index >= req->num_outstanding_cmds) { if (index >= req->num_outstanding_cmds) {
ql_log(ql_log_warn, vha, 0x5031, ql_log(ql_log_warn, vha, 0x5031,
"Invalid command index (%x) type %8ph.\n", "%s: Invalid command index (%x) type %8ph.\n",
index, iocb); func, index, iocb);
if (IS_P3P_TYPE(ha)) if (IS_P3P_TYPE(ha))
set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags); set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags);
else else
...@@ -1733,12 +1733,14 @@ qla2x00_get_sp_from_handle(scsi_qla_host_t *vha, const char *func, ...@@ -1733,12 +1733,14 @@ qla2x00_get_sp_from_handle(scsi_qla_host_t *vha, const char *func,
sp = req->outstanding_cmds[index]; sp = req->outstanding_cmds[index];
if (!sp) { if (!sp) {
ql_log(ql_log_warn, vha, 0x5032, ql_log(ql_log_warn, vha, 0x5032,
"Invalid completion handle (%x) -- timed-out.\n", index); "%s: Invalid completion handle (%x) -- timed-out.\n",
func, index);
return NULL; return NULL;
} }
if (sp->handle != index) { if (sp->handle != index) {
ql_log(ql_log_warn, vha, 0x5033, ql_log(ql_log_warn, vha, 0x5033,
"SRB handle (%x) mismatch %x.\n", sp->handle, index); "%s: SRB handle (%x) mismatch %x.\n", func,
sp->handle, index);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment