From 20743a3a679c06f996c767c48e1fb2711a369859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 2 Sep 2003 04:06:01 +0000 Subject: [PATCH] KPartition::Dump() now also writes its size in MB for convenience (makes it easier to check if the partitioning_system returns the correct size :-)). Uses %f which doesn't work in the BeOS kernel (but might in OpenBeOS). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4445 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/disk_device_manager/KPartition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/core/disk_device_manager/KPartition.cpp b/src/kernel/core/disk_device_manager/KPartition.cpp index b4fa17c317..a76015939d 100644 --- a/src/kernel/core/disk_device_manager/KPartition.cpp +++ b/src/kernel/core/disk_device_manager/KPartition.cpp @@ -940,7 +940,7 @@ KPartition::Dump(bool deep, int32 level) if (level > 0) OUT("%spartition %ld: %s\n", prefix, ID(), path); OUT("%s offset: %lld\n", prefix, Offset()); - OUT("%s size: %lld\n", prefix, Size()); + OUT("%s size: %lld (%.2f MB)\n", prefix, Size(), Size() / (1024.0*1024)); OUT("%s content size: %lld\n", prefix, ContentSize()); OUT("%s block size: %lu\n", prefix, BlockSize()); OUT("%s child count: %ld\n", prefix, CountChildren());