mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef.Console/DicConsole.cs:
Added methods without formatting. * DiscImageChef.Decoders/ATA.cs: Typo. * DiscImageChef.Decoders/SCSI.cs: Don't try to decode Version Descriptors if there are none. Also there are devices on the wild with less than 8 VDs. * DiscImageChef/Commands/DeviceInfo.cs: Use a format-less output.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* DicConsole.cs:
|
||||||
|
Added methods without formatting.
|
||||||
|
|
||||||
2015-10-18 Natalia Portillo <claunia@claunia.com>
|
2015-10-18 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* DicConsole.cs:
|
* DicConsole.cs:
|
||||||
|
|||||||
@@ -156,6 +156,31 @@ namespace DiscImageChef.Console
|
|||||||
if (DebugWriteEvent != null)
|
if (DebugWriteEvent != null)
|
||||||
DebugWriteEvent("", null);
|
DebugWriteEvent("", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void WriteLine(string format)
|
||||||
|
{
|
||||||
|
if (WriteLineEvent != null)
|
||||||
|
WriteLineEvent(format, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void ErrorWriteLine(string format)
|
||||||
|
{
|
||||||
|
if (ErrorWriteLineEvent != null)
|
||||||
|
ErrorWriteLineEvent(format, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void VerboseWriteLine(string format)
|
||||||
|
{
|
||||||
|
if (VerboseWriteLineEvent != null)
|
||||||
|
VerboseWriteLineEvent(format, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DebugWriteLine(string module, string format)
|
||||||
|
{
|
||||||
|
if (DebugWriteLineEvent != null)
|
||||||
|
DebugWriteLineEvent("DEBUG (" + module + "): " + format, null);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1853,7 +1853,7 @@ namespace DiscImageChef.Decoders
|
|||||||
|
|
||||||
public static IdentifyDevice? DecodeIdentifyDevice(byte[] IdentifyDeviceResponse)
|
public static IdentifyDevice? DecodeIdentifyDevice(byte[] IdentifyDeviceResponse)
|
||||||
{
|
{
|
||||||
if (IdentifyDeviceResponse != null)
|
if (IdentifyDeviceResponse == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (IdentifyDeviceResponse.Length != 512)
|
if (IdentifyDeviceResponse.Length != 512)
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* ATA.cs:
|
||||||
|
Typo.
|
||||||
|
|
||||||
|
* SCSI.cs:
|
||||||
|
Don't try to decode Version Descriptors if there are none.
|
||||||
|
Also there are devices on the wild with less than 8 VDs.
|
||||||
|
|
||||||
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* ATA.cs:
|
* ATA.cs:
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,8 @@
|
|||||||
|
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* Commands/DeviceInfo.cs:
|
||||||
|
Use a format-less output.
|
||||||
|
|
||||||
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* Commands/Decode.cs:
|
* Commands/Decode.cs:
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace DiscImageChef.Commands
|
|||||||
else
|
else
|
||||||
DicConsole.WriteLine("SCSI OK");
|
DicConsole.WriteLine("SCSI OK");
|
||||||
|
|
||||||
DicConsole.WriteLine("{0}", Decoders.SCSI.PrettifySCSIInquiry(inqBuf));
|
DicConsole.WriteLine(Decoders.SCSI.PrettifySCSIInquiry(inqBuf));
|
||||||
|
|
||||||
Structs.AtaErrorRegistersCHS errorRegisters;
|
Structs.AtaErrorRegistersCHS errorRegisters;
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ namespace DiscImageChef.Commands
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
DicConsole.WriteLine("ATAPI OK");
|
DicConsole.WriteLine("ATAPI OK");
|
||||||
DicConsole.WriteLine("{0}", Decoders.ATA.PrettifyIdentifyDevice(ataBuf));
|
DicConsole.WriteLine(Decoders.ATA.PrettifyIdentifyDevice(ataBuf));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -137,7 +137,7 @@ namespace DiscImageChef.Commands
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
DicConsole.WriteLine("ATA OK");
|
DicConsole.WriteLine("ATA OK");
|
||||||
DicConsole.WriteLine("{0}", Decoders.ATA.PrettifyIdentifyDevice(ataBuf));
|
DicConsole.WriteLine(Decoders.ATA.PrettifyIdentifyDevice(ataBuf));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user