Skip to content

Commit

Permalink
add debug log in Ventoy2Disk.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Jul 10, 2020
1 parent 039e684 commit 23986d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file modified INSTALL/Ventoy2Disk.exe
Binary file not shown.
8 changes: 8 additions & 0 deletions Ventoy2Disk/Ventoy2Disk/PhyDrive.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,13 +818,21 @@ int GetVentoyVerInPhyDrive(const PHY_DRIVE_INFO *pDriveInfo, UINT64 Part2StartSe

if (0 == fl_attach_media(VentoyFatDiskRead, NULL))
{
Log("attach media success...");
rc = GetVentoyVersionFromFatFile(VerBuf, BufLen);
}
else
{
Log("attach media failed...");
rc = 1;
}

Log("GetVentoyVerInPhyDrive rc=%d...", rc);
if (rc == 0)
{
Log("VentoyVerInPhyDrive %d is <%s>...", pDriveInfo->PhyDrive, VerBuf);
}

fl_shutdown();

CHECK_CLOSE_HANDLE(hDrive);
Expand Down

0 comments on commit 23986d7

Please sign in to comment.