On debug add more binary data from the responses to the report.

This commit is contained in:
2017-09-05 15:47:36 +01:00
parent 6d4c3f302d
commit 5e2dff4dee
7 changed files with 53 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ namespace DiscImageChef.Core.Devices.Report.SCSI
{
internal static class SSC
{
internal static void Report(Device dev, ref DeviceReport report)
internal static void Report(Device dev, ref DeviceReport report, bool debug)
{
if(report == null)
return;
@@ -220,6 +220,8 @@ namespace DiscImageChef.Core.Devices.Report.SCSI
{
report.SCSI.SupportsModeSense10 = true;
decMode = Decoders.SCSI.Modes.DecodeMode10(buffer, dev.SCSIType);
if(debug)
seqTest.ModeSense10Data = buffer;
}
DicConsole.WriteLine("Querying SCSI MODE SENSE...");
@@ -229,6 +231,8 @@ namespace DiscImageChef.Core.Devices.Report.SCSI
report.SCSI.SupportsModeSense6 = true;
if(!decMode.HasValue)
decMode = Decoders.SCSI.Modes.DecodeMode6(buffer, dev.SCSIType);
if(debug)
seqTest.ModeSense6Data = buffer;
}
if(decMode.HasValue)