add debug log in Ventoy2Disk.exe

This commit is contained in:
longpanda 2020-07-10 10:16:25 +08:00
parent 039e68400d
commit 23986d742d
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -818,13 +818,21 @@ int GetVentoyVerInPhyDrive(const PHY_DRIVE_INFO *pDriveInfo, UINT64 Part2StartSe
if (0 == fl_attach_media(VentoyFatDiskRead, NULL)) if (0 == fl_attach_media(VentoyFatDiskRead, NULL))
{ {
Log("attach media success...");
rc = GetVentoyVersionFromFatFile(VerBuf, BufLen); rc = GetVentoyVersionFromFatFile(VerBuf, BufLen);
} }
else else
{ {
Log("attach media failed...");
rc = 1; rc = 1;
} }
Log("GetVentoyVerInPhyDrive rc=%d...", rc);
if (rc == 0)
{
Log("VentoyVerInPhyDrive %d is <%s>...", pDriveInfo->PhyDrive, VerBuf);
}
fl_shutdown(); fl_shutdown();
CHECK_CLOSE_HANDLE(hDrive); CHECK_CLOSE_HANDLE(hDrive);