]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
add debug log in Ventoy2Disk.exe
authorlongpanda <admin@ventoy.net>
Fri, 10 Jul 2020 02:16:25 +0000 (10:16 +0800)
committerlongpanda <admin@ventoy.net>
Fri, 10 Jul 2020 02:16:25 +0000 (10:16 +0800)
INSTALL/Ventoy2Disk.exe
Ventoy2Disk/Ventoy2Disk/PhyDrive.c

index 5c4f5ae99e000d89d16655dacfdb0a4e6f9438e8..750e043dd9db14ed12bd8154e16df86469ad0440 100644 (file)
Binary files a/INSTALL/Ventoy2Disk.exe and b/INSTALL/Ventoy2Disk.exe differ
index 1cd0054485e26b38818c9a4411dc8669facfe934..6eade725ad6ce64bca1412145ede7fe21aba9aef 100644 (file)
@@ -818,13 +818,21 @@ int GetVentoyVerInPhyDrive(const PHY_DRIVE_INFO *pDriveInfo, UINT64 Part2StartSe
 \r
     if (0 == fl_attach_media(VentoyFatDiskRead, NULL))\r
     {\r
+        Log("attach media success...");\r
         rc = GetVentoyVersionFromFatFile(VerBuf, BufLen);\r
     }\r
     else\r
     {\r
+        Log("attach media failed...");\r
         rc = 1;\r
     }\r
 \r
+    Log("GetVentoyVerInPhyDrive rc=%d...", rc);\r
+    if (rc == 0)\r
+    {\r
+        Log("VentoyVerInPhyDrive %d is <%s>...", pDriveInfo->PhyDrive, VerBuf);\r
+    }\r
+\r
     fl_shutdown();\r
 \r
     CHECK_CLOSE_HANDLE(hDrive);\r