Let's print initiator and target names for not found LUNs to simplify diagnostics

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3663 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-07-07 19:58:11 +00:00
parent dc7cd39f2b
commit 660cc185d8

View File

@@ -3850,8 +3850,9 @@ static int scst_translate_lun(struct scst_cmd *cmd)
if (res != 0) {
TRACE(TRACE_MINOR,
"tgt_dev for LUN %lld not found, command to "
"unexisting LU?",
(long long unsigned int)cmd->lun);
"unexisting LU (initiator %s, target %s)?",
(long long unsigned int)cmd->lun,
cmd->sess->initiator_name, cmd->tgt->tgt_name);
scst_put(cmd->cpu_cmd_counter);
}
} else {