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; }