From: longpanda Date: Fri, 10 Jul 2020 02:16:25 +0000 (+0800) Subject: add debug log in Ventoy2Disk.exe X-Git-Tag: v1.0.16~11^2 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/23986d742d18e085e1d09ebfbd1cbb42b7ed4a02 add debug log in Ventoy2Disk.exe --- diff --git a/INSTALL/Ventoy2Disk.exe b/INSTALL/Ventoy2Disk.exe index 5c4f5ae..750e043 100644 Binary files a/INSTALL/Ventoy2Disk.exe and b/INSTALL/Ventoy2Disk.exe differ diff --git a/Ventoy2Disk/Ventoy2Disk/PhyDrive.c b/Ventoy2Disk/Ventoy2Disk/PhyDrive.c index 1cd0054..6eade72 100644 --- a/Ventoy2Disk/Ventoy2Disk/PhyDrive.c +++ b/Ventoy2Disk/Ventoy2Disk/PhyDrive.c @@ -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);