Commit in freeldr/freeldr/disk on MAIN
partition.c+31.12 -> 1.13
Report on which drive we couldn't find a partition table

freeldr/freeldr/disk
partition.c 1.12 -> 1.13
diff -u -r1.12 -r1.13
--- partition.c	9 Nov 2004 23:36:20 -0000	1.12
+++ partition.c	21 Nov 2004 12:28:12 -0000	1.13
@@ -197,6 +197,7 @@
 
 BOOL DiskReadBootRecord(U32 DriveNumber, U64 LogicalSectorNumber, PMASTER_BOOT_RECORD BootRecord)
 {
+	char		ErrMsg[64];
 #ifdef DEBUG
 	U32		Index;
 #endif
@@ -236,6 +237,8 @@
 	// Check the partition table magic value
 	if (BootRecord->MasterBootRecordMagic != 0xaa55)
 	{
+		sprintf(ErrMsg, "Invalid partition table magic 0x%x found on drive 0x%x",
+		        BootRecord->MasterBootRecordMagic, DriveNumber);
 		DiskError("Invalid partition table magic (0xaa55)", 0);
 		return FALSE;
 	}
CVSspam 0.2.8