From aa12492349dae10f4b88fd966db0f0171a370b33 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 20 Oct 2011 16:59:15 +0000 Subject: [PATCH] ib_srpt: Make the error message about rejected login more clear git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3897 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index a60ae0d91..3773b96d1 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2388,8 +2388,9 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id, rej->reason = cpu_to_be32( SRP_LOGIN_REJ_INSUFFICIENT_RESOURCES); ret = -EINVAL; - PRINT_ERROR("rejected SRP_LOGIN_REQ because the target %s" - " has not yet been enabled", sdev->device->name); + PRINT_ERROR("rejected SRP_LOGIN_REQ because the target %s (%s)" + " has not yet been enabled", + sdev->scst_tgt->tgt_name, sdev->device->name); goto reject; }