mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[USETUP]
DumpPartitionTable: Improve the output and print the partition start and length in sectors instead of bytes. svn path=/trunk/; revision=68214
This commit is contained in:
parent
566b655046
commit
f7bbd54974
|
@ -44,19 +44,25 @@ DumpPartitionTable(
|
||||||
PPARTITION_INFORMATION PartitionInfo;
|
PPARTITION_INFORMATION PartitionInfo;
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
|
DbgPrint("\n");
|
||||||
|
DbgPrint("Index Start Length Hidden Nr Type Boot RW\n");
|
||||||
|
DbgPrint("----- ------------ ------------ ---------- -- ---- ---- --\n");
|
||||||
|
|
||||||
for (i = 0; i < DiskEntry->LayoutBuffer->PartitionCount; i++)
|
for (i = 0; i < DiskEntry->LayoutBuffer->PartitionCount; i++)
|
||||||
{
|
{
|
||||||
PartitionInfo = &DiskEntry->LayoutBuffer->PartitionEntry[i];
|
PartitionInfo = &DiskEntry->LayoutBuffer->PartitionEntry[i];
|
||||||
DPRINT1("\n%lu: %12I64u %12I64u %10lu %2lu %2x %c %c\n",
|
DbgPrint(" %3lu %12I64u %12I64u %10lu %2lu %2x %c %c\n",
|
||||||
i,
|
i,
|
||||||
PartitionInfo->StartingOffset.QuadPart,
|
PartitionInfo->StartingOffset.QuadPart / DiskEntry->BytesPerSector,
|
||||||
PartitionInfo->PartitionLength.QuadPart,
|
PartitionInfo->PartitionLength.QuadPart / DiskEntry->BytesPerSector,
|
||||||
PartitionInfo->HiddenSectors,
|
PartitionInfo->HiddenSectors,
|
||||||
PartitionInfo->PartitionNumber,
|
PartitionInfo->PartitionNumber,
|
||||||
PartitionInfo->PartitionType,
|
PartitionInfo->PartitionType,
|
||||||
PartitionInfo->BootIndicator ? '*': ' ',
|
PartitionInfo->BootIndicator ? '*': ' ',
|
||||||
PartitionInfo->RewritePartition ? 'Y': 'N');
|
PartitionInfo->RewritePartition ? 'Y': 'N');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DbgPrint("\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue