kernel/fs: Only dump devices and partitions under KDEBUG.
Avoids a lot of noise in release kernel syslogs.
This commit is contained in:
@@ -365,13 +365,14 @@ get_boot_partitions(KMessage& bootVolume, PartitionStack& partitions)
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 /* dump devices and partitions */) {
|
#if KDEBUG
|
||||||
KDiskDevice *device;
|
// dump devices and partitions
|
||||||
int32 cookie = 0;
|
KDiskDevice *device;
|
||||||
while ((device = manager->NextDevice(&cookie)) != NULL) {
|
int32 cookie = 0;
|
||||||
device->Dump(true, 0);
|
while ((device = manager->NextDevice(&cookie)) != NULL) {
|
||||||
}
|
device->Dump(true, 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct BootPartitionVisitor : KPartitionVisitor {
|
struct BootPartitionVisitor : KPartitionVisitor {
|
||||||
BootPartitionVisitor(BootMethod* bootMethod, PartitionStack &stack)
|
BootPartitionVisitor(BootMethod* bootMethod, PartitionStack &stack)
|
||||||
|
|||||||
Reference in New Issue
Block a user