From 660cc185d8a1a78df9fa934c4254f986f68d7cc3 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 7 Jul 2011 19:58:11 +0000 Subject: [PATCH] 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 --- scst/src/scst_targ.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index c005a4431..49a648989 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -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 {