Fixed warnings when building the bfs_shell.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23462 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-01-12 23:58:56 +00:00
parent 89f97fe903
commit d1ba9c8adc
2 changed files with 3 additions and 3 deletions

View File

@ -1002,7 +1002,7 @@ BPlusTree::_SplitNode(bplustree_node *node, off_t nodeOffset,
int32 keyIndex = *_keyIndex; // can become less than zero!
if (keyIndex > node->NumKeys()) {
FATAL(("key index out of bounds: %ld, num keys: %u\n", keyIndex,
FATAL(("key index out of bounds: %d, num keys: %u\n", (int)keyIndex,
node->NumKeys()));
return B_BAD_VALUE;
}

View File

@ -380,8 +380,8 @@ Journal::_ReplayRunArray(int32 *_start)
CachedBlock cached(fVolume);
for (int32 index = 0; index < array->CountRuns(); index++) {
const block_run &run = array->RunAt(index);
INFORM(("replay block run %lu:%u:%u in log at %Ld!\n",
run.AllocationGroup(), run.Start(), run.Length(), blockNumber));
INFORM(("replay block run %u:%u:%u in log at %Ld!\n",
(int)run.AllocationGroup(), run.Start(), run.Length(), blockNumber));
off_t offset = fVolume->ToOffset(run);
for (int32 i = 0; i < run.Length(); i++) {