[haiku-commits] r37029 - haiku/trunk/src/system/kernel/vm

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 6 Jun 2010 13:28:33 +0200 (CEST)

Author: bonefish
Date: 2010-06-06 13:28:33 +0200 (Sun, 06 Jun 2010)
New Revision: 37029
Changeset: http://dev.haiku-os.org/changeset/37029/haiku
Ticket: http://dev.haiku-os.org/ticket/6141

Modified:
   haiku/trunk/src/system/kernel/vm/vm.cpp
Log:
Debug output of map_backing_store(), vm_map_physical_memory[_vecs](): Print
the potential input parameter (virtual address) rather than its address. As
suggested by Andreas Faerber in #6141.


Modified: haiku/trunk/src/system/kernel/vm/vm.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/vm.cpp     2010-06-06 09:39:38 UTC (rev 
37028)
+++ haiku/trunk/src/system/kernel/vm/vm.cpp     2010-06-06 11:28:33 UTC (rev 
37029)
@@ -745,7 +745,7 @@
        int wiring, int protection, int mapping, VMArea** _area,
        const char* areaName, uint32 flags, bool kernel)
 {
-       TRACE(("map_backing_store: aspace %p, cache %p, *vaddr %p, offset 
0x%Lx, "
+       TRACE(("map_backing_store: aspace %p, cache %p, virtual %p, offset 
0x%Lx, "
                "size %lu, addressSpec %ld, wiring %d, protection %d, area %p, 
areaName "
                "'%s'\n", addressSpace, cache, *_virtualAddress, offset, size,
                addressSpec, wiring, protection, _area, areaName));
@@ -1404,7 +1404,7 @@
 
        TRACE(("vm_map_physical_memory(aspace = %ld, \"%s\", virtual = %p, "
                "spec = %ld, size = %lu, protection = %ld, phys = %#lx)\n", 
team,
-               name, _address, addressSpec, size, protection, 
physicalAddress));
+               name, *_address, addressSpec, size, protection, 
physicalAddress));
 
        if (!arch_vm_supports_protection(protection))
                return B_NOT_SUPPORTED;
@@ -1509,7 +1509,7 @@
 {
        TRACE(("vm_map_physical_memory_vecs(team = %ld, \"%s\", virtual = %p, "
                "spec = %ld, _size = %p, protection = %ld, vecs = %p, "
-               "vecCount = %ld)\n", team, name, _address, addressSpec, _size,
+               "vecCount = %ld)\n", team, name, *_address, addressSpec, _size,
                protection, vecs, vecCount));
 
        if (!arch_vm_supports_protection(protection)


Other related posts:

  • » [haiku-commits] r37029 - haiku/trunk/src/system/kernel/vm - ingo_weinhold