From e878738efde6e225b1cd700205cb8306f7f75e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 15 Jun 2004 15:25:25 +0000 Subject: [PATCH] Fixed compilation with tracing turned on. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7965 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/vm/vm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kernel/core/vm/vm.c b/src/kernel/core/vm/vm.c index 5a35c813ce..9329ccf9a7 100755 --- a/src/kernel/core/vm/vm.c +++ b/src/kernel/core/vm/vm.c @@ -40,8 +40,8 @@ #include #include -#define TRACE_VM 0 -#if TRACE_VM +//#define TRACE_VM +#ifdef TRACE_VM # define TRACE(x) dprintf x #else # define TRACE(x) ; @@ -504,7 +504,7 @@ map_backing_store(vm_address_space *aspace, vm_store *store, void **vaddr, int err; - TRACE(("map_backing_store: aspace 0x%x, store 0x%x, *vaddr 0x%x, offset 0x%Lx, size %d, addr_type %d, wiring %d, lock %d, _region 0x%x, region_name '%s'\n", + TRACE(("map_backing_store: aspace %p, store %p, *vaddr %p, offset 0x%Lx, size %lu, addr_type %d, wiring %d, lock %d, _region %p, region_name '%s'\n", aspace, store, *vaddr, offset, size, addr_type, wiring, lock, _region, region_name)); region = _vm_create_region_struct(aspace, region_name, wiring, lock); @@ -920,7 +920,7 @@ vm_map_physical_memory(aspace_id aid, const char *name, void **_address, TRACE(("vm_map_physical_memory(aspace = %ld, \"%s\", virtual = %p, spec = %d," " size = %lu, lock = %d, phys = %p)\n", - aid, name, address, addr_type, size, lock, (void *)phys_addr)); + aid, name, _address, addr_type, size, lock, (void *)phys_addr)); if (aspace == NULL) return ERR_VM_INVALID_ASPACE;