Minor logging improvement

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5493 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2014-04-29 02:09:29 +00:00
parent 7150fc35f2
commit bea1b78f4a

View File

@@ -2533,8 +2533,8 @@ static int scst_persistent_reserve_in_local(struct scst_cmd *cmd)
action = cmd->cdb[1] & 0x1f;
TRACE(TRACE_SCSI, "PR action %x for '%s' (LUN %llx) from '%s'", action,
dev->virt_name, tgt_dev->lun, session->initiator_name);
TRACE(TRACE_SCSI, "PR IN action %x for '%s' (LUN %llx) from '%s'",
action, dev->virt_name, tgt_dev->lun, session->initiator_name);
switch (action) {
case PR_READ_KEYS:
@@ -2605,8 +2605,8 @@ static int scst_persistent_reserve_out_local(struct scst_cmd *cmd)
action = cmd->cdb[1] & 0x1f;
TRACE(TRACE_SCSI, "PR action %x for '%s' (LUN %llx) from '%s'", action,
dev->virt_name, tgt_dev->lun, session->initiator_name);
TRACE(TRACE_SCSI, "PR OUT action %x for '%s' (LUN %llx) from '%s'",
action, dev->virt_name, tgt_dev->lun, session->initiator_name);
if (scst_dev_reserved(dev)) {
TRACE_PR("PR command rejected, because device %s holds regular "