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)