dump all found devices and partitions to serial debug output

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23161 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2007-12-26 15:25:05 +00:00
parent 46f38a7d4b
commit 518772739f
1 changed files with 8 additions and 0 deletions

View File

@ -370,6 +370,14 @@ dprintf("get_boot_partitions(): boot method type: %ld\n", bootMethodType);
return status;
}
if (1 /* dump devices and partitions */) {
KDiskDevice *device;
int32 cookie = 0;
while ((device = manager->NextDevice(&cookie)) != NULL) {
device->Dump(true, 0);
}
}
struct BootPartitionVisitor : KPartitionVisitor {
BootPartitionVisitor(BootMethod* bootMethod, PartitionStack &stack)
: fPartitions(stack),