Author: ekohl
Date: Sat Jun 20 18:17:03 2015
New Revision: 68214
URL:
http://svn.reactos.org/svn/reactos?rev=68214&view=rev
Log:
[USETUP]
DumpPartitionTable: Improve the output and print the partition start and length in sectors
instead of bytes.
Modified:
trunk/reactos/base/setup/usetup/partlist.c
Modified: trunk/reactos/base/setup/usetup/partlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/partlist…
==============================================================================
--- trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] Sat Jun 20 18:17:03 2015
@@ -44,19 +44,25 @@
PPARTITION_INFORMATION PartitionInfo;
ULONG i;
+ DbgPrint("\n");
+ DbgPrint("Index Start Length Hidden Nr Type Boot
RW\n");
+ DbgPrint("----- ------------ ------------ ---------- -- ---- ----
--\n");
+
for (i = 0; i < DiskEntry->LayoutBuffer->PartitionCount; i++)
{
PartitionInfo = &DiskEntry->LayoutBuffer->PartitionEntry[i];
- DPRINT1("\n%lu: %12I64u %12I64u %10lu %2lu %2x %c %c\n",
- i,
- PartitionInfo->StartingOffset.QuadPart,
- PartitionInfo->PartitionLength.QuadPart,
- PartitionInfo->HiddenSectors,
- PartitionInfo->PartitionNumber,
- PartitionInfo->PartitionType,
- PartitionInfo->BootIndicator ? '*': ' ',
- PartitionInfo->RewritePartition ? 'Y': 'N');
- }
+ DbgPrint(" %3lu %12I64u %12I64u %10lu %2lu %2x %c %c\n",
+ i,
+ PartitionInfo->StartingOffset.QuadPart /
DiskEntry->BytesPerSector,
+ PartitionInfo->PartitionLength.QuadPart /
DiskEntry->BytesPerSector,
+ PartitionInfo->HiddenSectors,
+ PartitionInfo->PartitionNumber,
+ PartitionInfo->PartitionType,
+ PartitionInfo->BootIndicator ? '*': ' ',
+ PartitionInfo->RewritePartition ? 'Y': 'N');
+ }
+
+ DbgPrint("\n");
}
#endif