Skip to content

Commit

Permalink
kernel/fs: Only dump devices and partitions under KDEBUG.
Browse files Browse the repository at this point in the history
Avoids a lot of noise in release kernel syslogs.
  • Loading branch information
waddlesplash committed Sep 10, 2019
1 parent 4ee6978 commit 1bdffaf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/system/kernel/fs/vfs_boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1bdffaf

Please sign in to comment.