Commit 23986d74 authored by longpanda's avatar longpanda
Browse files

add debug log in Ventoy2Disk.exe

parent 039e6840
No preview for this file type
...@@ -818,13 +818,21 @@ int GetVentoyVerInPhyDrive(const PHY_DRIVE_INFO *pDriveInfo, UINT64 Part2StartSe ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment