Added specific console handling for standard, verbose, debug

and error outputs.
This commit is contained in:
2015-10-18 22:04:03 +01:00
parent dfcd7301c5
commit 4f407e3d15
63 changed files with 2075 additions and 1929 deletions

View File

@@ -1,3 +1,12 @@
2015-10-18 Natalia Portillo <claunia@claunia.com>
* Device/AtaCommands.cs:
* Device/ScsiCommands.cs:
* Device/AtapiCommands.cs:
* DiscImageChef.Devices.csproj:
Added specific console handling for standard, verbose, debug
and error outputs.
2015-10-17 Natalia Portillo <claunia@claunia.com>
* Enums.cs:

View File

@@ -36,6 +36,7 @@
// ****************************************************************************/
// //$Id$
using System;
using DiscImageChef.Console;
namespace DiscImageChef.Devices
{
@@ -97,9 +98,7 @@ namespace DiscImageChef.Devices
ref buffer, timeout, false, out duration, out sense);
error = lastError != 0;
#if DEBUG
Console.WriteLine("ATA IDENTIFY DEVICE took {0} ms.", duration);
#endif
DicConsole.DebugWriteLine("ATA Device", "IDENTIFY DEVICE took {0} ms.", duration);
return sense;
}

View File

@@ -36,6 +36,7 @@
// ****************************************************************************/
// //$Id$
using System;
using DiscImageChef.Console;
namespace DiscImageChef.Devices
{
@@ -97,9 +98,7 @@ namespace DiscImageChef.Devices
ref buffer, timeout, false, out duration, out sense);
error = lastError != 0;
#if DEBUG
Console.WriteLine("ATA IDENTIFY PACKET DEVICE took {0} ms.", duration);
#endif
DicConsole.DebugWriteLine("ATA Device", "IDENTIFY PACKET DEVICE took {0} ms.", duration);
return sense;
}

View File

@@ -36,6 +36,7 @@
// ****************************************************************************/
// //$Id$
using System;
using DiscImageChef.Console;
namespace DiscImageChef.Devices
{
@@ -107,9 +108,7 @@ namespace DiscImageChef.Devices
lastError = SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, Enums.ScsiDirection.In, out duration, out sense);
error = lastError != 0;
#if DEBUG
Console.WriteLine("SCSI INQUIRY took {0} ms.", duration);
#endif
DicConsole.DebugWriteLine("SCSI Device", "INQUIRY took {0} ms.", duration);
return sense;
}
@@ -184,9 +183,7 @@ namespace DiscImageChef.Devices
lastError = SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, Enums.ScsiDirection.In, out duration, out sense);
error = lastError != 0;
#if DEBUG
Console.WriteLine("SCSI INQUIRY took {0} ms.", duration);
#endif
DicConsole.DebugWriteLine("SCSI Device", "INQUIRY took {0} ms.", duration);
return sense;
}

View File

@@ -74,5 +74,9 @@
<Project>{9183F2E0-A879-4F23-9EE3-C6908F1332B2}</Project>
<Name>DiscImageChef.Interop</Name>
</ProjectReference>
<ProjectReference Include="..\DiscImageChef.Console\DiscImageChef.Console.csproj">
<Project>{CCAA7AFE-C094-4D82-A66D-630DE8A3F545}</Project>
<Name>DiscImageChef.Console</Name>
</ProjectReference>
</ItemGroup>
</Project>