Skip to content

Commit

Permalink
DEV9: Adjustments to HDD logs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastRar authored and stenzek committed Apr 17, 2024
1 parent 8723513 commit 815e5d9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 2 additions & 4 deletions pcsx2/DEV9/ATA/ATA_Info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ void ATA::CreateHDDinfo(u64 sizeSectors)
sizeSectors = std::min<u64>(sizeSectors, maxSize);

constexpr u16 sectorSize = 512;
DevCon.WriteLn("DEV9: HddSize : %i", sizeSectors * sectorSize / (1024 * 1024));
DevCon.WriteLn("DEV9: sizeSectors : %i", sizeSectors); // SizeSectors will keep 48-bit size
DevCon.WriteLn("DEV9: ATA: HddSize : %i", sizeSectors * sectorSize / (1024 * 1024));
DevCon.WriteLn("DEV9: ATA: sizeSectors : %i", sizeSectors); // SizeSectors will keep 48-bit size

memset(&identifyData, 0, sizeof(identifyData));
//Defualt CHS translation
Expand Down Expand Up @@ -399,6 +399,4 @@ void ATA::CreateHDDinfoCsum()

for (int i = 0; i < (512); i++)
counter += identifyData[i];

DevCon.WriteLn("DEV9: %i", counter);
}
4 changes: 3 additions & 1 deletion pcsx2/DEV9/ATA/ATA_State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ int ATA::Open(const std::string& hddPath)
readBuffer = new u8[readBufferLen];
memset(sceSec, 0, sizeof(sceSec));

DevCon.WriteLn("DEV9: ATA: HddFile : %s", hddPath.c_str());

//Open File
if (!FileSystem::FileExists(hddPath.c_str()))
return -1;
Expand All @@ -48,7 +50,7 @@ int ATA::Open(const std::string& hddPath)
const s64 size = hddImage ? FileSystem::FSize64(hddImage) : -1;
if (!hddImage || size < 0)
{
Console.Error("Failed to open HDD image '%s'", hddPath.c_str());
Console.Error("DEV9: ATA: Failed to open HDD image '%s'", hddPath.c_str());
return -1;
}

Expand Down
4 changes: 2 additions & 2 deletions pcsx2/DEV9/ATA/HddCreate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ void HddCreate::WriteImage(const std::string& hddPath, u64 fileBytes, u64 zeroSi

void HddCreate::SetFileProgress(u64 currentSize)
{
Console.WriteLn(fmt::format("{} / {} Bytes", currentSize, neededSize).c_str());
Console.WriteLn(fmt::format("DEV9: HddCreate: {} / {} Bytes", currentSize, neededSize).c_str());
}

void HddCreate::SetError()
{
Console.WriteLn("Failed to create HDD file");
Console.WriteLn("DEV9: HddCreate: Failed to create HDD file");
}

void HddCreate::SetCanceled()
Expand Down
1 change: 0 additions & 1 deletion pcsx2/DEV9/DEV9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ void DEV9shutdown()
s32 DEV9open()
{
DevCon.WriteLn("DEV9: DEV9open");
DevCon.WriteLn("DEV9: open r+: %s", EmuConfig.DEV9.HddFile.c_str());

std::string hddPath(GetHDDPath());

Expand Down

0 comments on commit 815e5d9

Please sign in to comment.