Print initiator and target in the abort messages

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5705 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2014-07-28 23:11:14 +00:00
parent 138263c323
commit 75b37becd7

View File

@@ -5424,13 +5424,14 @@ void scst_abort_cmd(struct scst_cmd *cmd, struct scst_mgmt_cmd *mcmd,
"op %s, proc time %ld sec., timeout %d sec.), "
"deferring ABORT (cmd_done_wait_count %d, "
"cmd_finish_wait_count %d, internal %d, mcmd "
"fn %d (mcmd %p))", cmd,
(long long unsigned int)cmd->tag,
"fn %d (mcmd %p), initiator %s, target %s)",
cmd, (long long unsigned int)cmd->tag,
cmd->sn, cmd->state, scst_get_opcode_name(cmd),
(long)(jiffies - cmd->start_time) / HZ,
cmd->timeout / HZ, mcmd->cmd_done_wait_count,
mcmd->cmd_finish_wait_count, cmd->internal,
mcmd->fn, mcmd);
mcmd->fn, mcmd, mcmd->sess->initiator_name,
mcmd->sess->tgt->tgt_name);
/*
* cmd can't die here or sess_list_lock already taken
* and cmd is in the sess list