kernel/fs: Only dump devices and partitions under KDEBUG.

Avoids a lot of noise in release kernel syslogs.
This commit is contained in:
Augustin Cavalier
2019-09-09 20:46:45 -04:00
parent 4ee6978ed7
commit 1bdffaf427
+7 -6
View File
@@ -365,13 +365,14 @@ get_boot_partitions(KMessage& bootVolume, PartitionStack& partitions)
return status;
}
if (1 /* dump devices and partitions */) {
KDiskDevice *device;
int32 cookie = 0;
while ((device = manager->NextDevice(&cookie)) != NULL) {
device->Dump(true, 0);
}
#if KDEBUG
// dump devices and partitions
KDiskDevice *device;
int32 cookie = 0;
while ((device = manager->NextDevice(&cookie)) != NULL) {
device->Dump(true, 0);
}
#endif
struct BootPartitionVisitor : KPartitionVisitor {
BootPartitionVisitor(BootMethod* bootMethod, PartitionStack &stack)