From 1e7497da42d59e3bf4e44ab30b29bfc46a9db624 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 21 Jul 2010 15:23:46 +0000 Subject: [PATCH] Debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37655 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/system/kernel/file_corruption/fs/Transaction.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/system/kernel/file_corruption/fs/Transaction.cpp b/src/tests/system/kernel/file_corruption/fs/Transaction.cpp index 9a533d39ec..d68967eb6e 100644 --- a/src/tests/system/kernel/file_corruption/fs/Transaction.cpp +++ b/src/tests/system/kernel/file_corruption/fs/Transaction.cpp @@ -13,6 +13,7 @@ #include #include "BlockAllocator.h" +#include "DebugSupport.h" #include "Volume.h" @@ -299,7 +300,7 @@ Transaction::RegisterBlock(uint64 blockIndex) // nope, create a new one info = new(std::nothrow) BlockInfo; if (info == NULL) - return B_NO_MEMORY; + RETURN_ERROR(B_NO_MEMORY); ObjectDeleter infoDeleter(info); info->indexAndCheckSum.blockIndex = blockIndex; @@ -309,14 +310,14 @@ Transaction::RegisterBlock(uint64 blockIndex) // get the old check sum if (ioctl(fVolume->FD(), CHECKSUM_DEVICE_IOCTL_GET_CHECK_SUM, &info->indexAndCheckSum, sizeof(info->indexAndCheckSum)) < 0) { - return errno; + RETURN_ERROR(errno); } // get the data (we're fine with read-only) info->data = block_cache_get(fVolume->BlockCache(), blockIndex); if (info->data == NULL) { delete info; - return B_ERROR; + RETURN_ERROR(B_ERROR); } fBlockInfos.Insert(infoDeleter.Detach());