From 265694bb1fcc00cd7fb87195db31786674ea2d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 12 Oct 2009 14:33:22 +0000 Subject: [PATCH] * Fixed warnings when compiled with DEBUG=1. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33550 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp b/src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp index fa3f84e7d1..36de9251ba 100644 --- a/src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp @@ -2203,7 +2203,7 @@ TreeIterator::Dump() __out("TreeIterator at %p:\n", this); __out("\tfTree = %p\n", fTree); __out("\tfCurrentNodeOffset = %Ld\n", fCurrentNodeOffset); - __out("\tfCurrentKey = %ld\n", fCurrentKey); + __out("\tfCurrentKey = %d\n", (int)fCurrentKey); __out("\tfDuplicateNode = %Ld (%Ld, 0x%Lx)\n", bplustree_node::FragmentOffset(fDuplicateNode), fDuplicateNode, fDuplicateNode); @@ -2304,12 +2304,12 @@ bplustree_node::CheckIntegrity(uint32 nodeSize) const if (key + length + sizeof(off_t) + sizeof(uint16) > (uint8*)this + nodeSize || length > BPLUSTREE_MAX_KEY_LENGTH) { - dprintf("node %p, key %ld\n", this, i); + dprintf("node %p, key %d\n", this, (int)i); DEBUGGER(("invalid node: keys corrupted")); return B_BAD_DATA; } if (Values()[i] == -1) { - dprintf("node %p, value %ld: %Ld\n", this, i, Values()[i]); + dprintf("node %p, value %d: %lld\n", this, (int)i, Values()[i]); DEBUGGER(("invalid node: values corrupted")); return B_BAD_DATA; }