mirror of https://github.com/ventoy/Ventoy.git
add debug log in Ventoy2Disk.exe
This commit is contained in:
parent
039e68400d
commit
23986d742d
Binary file not shown.
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue