From 1bdffaf4271e12edb892cbc11ff8c0f095125448 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 9 Sep 2019 20:46:45 -0400 Subject: [PATCH] kernel/fs: Only dump devices and partitions under KDEBUG. Avoids a lot of noise in release kernel syslogs. --- src/system/kernel/fs/vfs_boot.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/system/kernel/fs/vfs_boot.cpp b/src/system/kernel/fs/vfs_boot.cpp index 3e5a9d94e4..f84b7e1681 100644 --- a/src/system/kernel/fs/vfs_boot.cpp +++ b/src/system/kernel/fs/vfs_boot.cpp @@ -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)