From 94b89e4bccb9fe9e68581bcee8080f2ca3dc6cfc Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 21 Jul 2010 15:16:36 +0000 Subject: [PATCH] Debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37653 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../system/kernel/file_corruption/fs/Volume.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tests/system/kernel/file_corruption/fs/Volume.cpp b/src/tests/system/kernel/file_corruption/fs/Volume.cpp index 90a01caa0e..21c74d384b 100644 --- a/src/tests/system/kernel/file_corruption/fs/Volume.cpp +++ b/src/tests/system/kernel/file_corruption/fs/Volume.cpp @@ -189,22 +189,22 @@ Volume::Initialize(const char* name) { fName = strdup(name); if (fName == NULL) - return B_NO_MEMORY; + RETURN_ERROR(B_NO_MEMORY); Transaction transaction(this); status_t error = transaction.Start(); if (error != B_OK) - return error; + RETURN_ERROR(error); error = fBlockAllocator->Initialize(transaction); if (error != B_OK) - return error; + RETURN_ERROR(error); // create the root directory error = CreateDirectory(S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH, transaction, fRootDirectory); if (error != B_OK) - return error; + RETURN_ERROR(error); transaction.KeepNode(fRootDirectory); fRootDirectory->SetHardLinks(1); @@ -213,7 +213,7 @@ Volume::Initialize(const char* name) Block block; if (!block.GetZero(this, kCheckSumFSSuperBlockOffset / B_PAGE_SIZE, transaction)) { - return B_ERROR; + RETURN_ERROR(B_ERROR); } SuperBlock* superBlock = (SuperBlock*)block.Data(); @@ -224,7 +224,7 @@ Volume::Initialize(const char* name) // commit the transaction and flush the block cache error = transaction.Commit(); if (error != B_OK) - return error; + RETURN_ERROR(error); return block_cache_sync(fBlockCache); }