]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
misc update
authorlongpanda <admin@ventoy.net>
Mon, 10 May 2021 10:13:41 +0000 (18:13 +0800)
committerlongpanda <admin@ventoy.net>
Mon, 10 May 2021 10:13:41 +0000 (18:13 +0800)
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_vhd.c

index 502a248b47c2ab28ef8a55aa6e684d7d0ffa7ae9..b37cf0ac78c5fa0e064c5a0d21942db0e732ecca 100644 (file)
@@ -543,7 +543,7 @@ grub_err_t ventoy_cmd_get_vtoy_type(grub_extcmd_context_t ctxt, int argc, char *
     }
 
     grub_env_set(args[1], type);
     }
 
     grub_env_set(args[1], type);
-    debug("<%s> vtoy type: <%s> ", args[0], type);
+    debug("<%s> vtoy type: <%s> offset:%d\n", args[0], type, offset);
     
     if (offset >= 0)
     {
     
     if (offset >= 0)
     {
@@ -598,6 +598,14 @@ grub_err_t ventoy_cmd_get_vtoy_type(grub_extcmd_context_t ctxt, int argc, char *
                         altboot = 1;
                         grub_env_set(args[3], "1");                        
                     }
                         altboot = 1;
                         grub_env_set(args[3], "1");                        
                     }
+                    else
+                    {
+                        debug("offset data=0x%x\n", data);
+                    }
+                }
+                else
+                {
+                    debug("BootCode: 0x%x\n", gpt->MBR.BootCode[92]);
                 }
             }
         }
                 }
             }
         }