Use KPath now.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9553 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2004-10-27 21:59:54 +00:00
parent 8ece359269
commit 2cee54a863

View File

@ -8,6 +8,7 @@
#include "KDiskDeviceUtils.h" #include "KDiskDeviceUtils.h"
#include "KDiskSystem.h" #include "KDiskSystem.h"
#include "KPartition.h" #include "KPartition.h"
#include "KPath.h"
#include "KScanPartitionJob.h" #include "KScanPartitionJob.h"
// debugging // debugging
@ -60,9 +61,11 @@ KScanPartitionJob::_ScanPartition(KPartition *partition)
// the partition's device must be write-locked // the partition's device must be write-locked
if (!partition) if (!partition)
return B_BAD_VALUE; return B_BAD_VALUE;
char partitionPath[B_PATH_NAME_LENGTH]; DBG(
partition->GetPath(partitionPath); KPath partitionPath;
DBG(OUT("KDiskDeviceManager::_ScanPartition(%s)\n", partitionPath)); partition->GetPath(&partitionPath);
OUT("KDiskDeviceManager::_ScanPartition(%s)\n", partitionPath.Path())
)
// publish the partition // publish the partition
status_t error = partition->PublishDevice(); status_t error = partition->PublishDevice();
if (error != B_OK) if (error != B_OK)