소스 검색

VirtualSCSITarget Read/Write log entries now properly print the LUN

Tal Aloni 8 년 전
부모
커밋
3893bf6e4b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ISCSI/SCSITarget/VirtualSCSITarget.cs

+ 2 - 2
ISCSI/SCSITarget/VirtualSCSITarget.cs

@@ -356,7 +356,7 @@ namespace SCSI
         {
             Disk disk = m_disks[lun];
             int sectorCount = (int)command.TransferLength;
-            Log(Severity.Verbose, "LUN {0}: Reading {1} blocks starting from LBA {2}", lun, sectorCount, (long)command.LogicalBlockAddress64);
+            Log(Severity.Verbose, "LUN {0}: Reading {1} blocks starting from LBA {2}", (ushort)lun, sectorCount, (long)command.LogicalBlockAddress64);
             try
             {
                 response = disk.ReadSectors((long)command.LogicalBlockAddress64, sectorCount);
@@ -435,7 +435,7 @@ namespace SCSI
                 return SCSIStatusCodeName.CheckCondition;
             }
 
-            Log(Severity.Verbose, "LUN {0}: Writing {1} blocks starting from LBA {2}", lun, command.TransferLength, (long)command.LogicalBlockAddress64);
+            Log(Severity.Verbose, "LUN {0}: Writing {1} blocks starting from LBA {2}", (ushort)lun, command.TransferLength, (long)command.LogicalBlockAddress64);
             try
             {
                 disk.WriteSectors((long)command.LogicalBlockAddress64, data);