mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Do not call string.Format unnecessarily.
This commit is contained in:
@@ -83,12 +83,12 @@ static class Plasmon
|
||||
|
||||
static void ReadLong(string devPath, Device dev)
|
||||
{
|
||||
bool relative = false;
|
||||
var relative = false;
|
||||
uint address = 0;
|
||||
ushort length = 1;
|
||||
ushort bps = 512;
|
||||
bool physical = false;
|
||||
bool sectorCount = true;
|
||||
var physical = false;
|
||||
var sectorCount = true;
|
||||
string strDev;
|
||||
int item;
|
||||
|
||||
@@ -305,7 +305,7 @@ static class Plasmon
|
||||
Console.Clear();
|
||||
AaruLogging.WriteLine(Localization.Device_0, devPath);
|
||||
AaruLogging.WriteLine(Localization.READ_LONG_decoded_sense);
|
||||
AaruLogging.Write("{0}", Sense.PrettifySense(senseBuffer.ToArray()));
|
||||
AaruLogging.Write(Sense.PrettifySense(senseBuffer.ToArray()));
|
||||
AaruLogging.WriteLine(Localization.Press_any_key_to_continue);
|
||||
Console.ReadKey();
|
||||
Console.Clear();
|
||||
@@ -328,7 +328,7 @@ static class Plasmon
|
||||
static void ReadSectorLocation(string devPath, Device dev)
|
||||
{
|
||||
uint address = 0;
|
||||
bool physical = false;
|
||||
var physical = false;
|
||||
string strDev;
|
||||
int item;
|
||||
|
||||
@@ -478,7 +478,7 @@ static class Plasmon
|
||||
Console.Clear();
|
||||
AaruLogging.WriteLine(Localization.Device_0, devPath);
|
||||
AaruLogging.WriteLine(Localization.READ_SECTOR_LOCATION_decoded_sense);
|
||||
AaruLogging.Write("{0}", Sense.PrettifySense(senseBuffer.ToArray()));
|
||||
AaruLogging.Write(Sense.PrettifySense(senseBuffer.ToArray()));
|
||||
AaruLogging.WriteLine(Localization.Press_any_key_to_continue);
|
||||
Console.ReadKey();
|
||||
Console.Clear();
|
||||
|
||||
Reference in New Issue
Block a user