Print Hi-MD specific data when pretty printing SCSI INQUIRY.

This commit is contained in:
2020-01-30 21:50:28 +00:00
parent 782b8c4bb8
commit 840ee9a640

View File

@@ -2429,7 +2429,8 @@ namespace DiscImageChef.Decoders.SCSI
sb.AppendLine("============================================================");
}
if(response.VendorSpecific != null)
if(response.VendorSpecific != null &&
response.IsHiMD)
if(response.KreonPresent)
{
byte[] vendor = new byte[7];
@@ -2447,6 +2448,19 @@ namespace DiscImageChef.Decoders.SCSI
sb.AppendLine("============================================================");
}
if(response.IsHiMD)
{
sb.AppendLine("Hi-MD device.");
if(response.HiMDSpecific != null)
{
sb.AppendLine("Hi-MD specific bytes 44 to 55");
sb.AppendLine("============================================================");
sb.AppendLine(PrintHex.ByteArrayToHexArrayString(response.HiMDSpecific, 60));
sb.AppendLine("============================================================");
}
}
if(response.VendorSpecific2 == null)
return sb.ToString();