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

Author: bonefish
Date: 2010-07-06 16:31:34 +0200 (Tue, 06 Jul 2010)
New Revision: 37411
Changeset: http://dev.haiku-os.org/changeset/37411/haiku

Modified:
   haiku/trunk/src/system/kernel/vm/vm_page.cpp
Log:
Fixed warnings with TRACE_VM_PAGE enabled.


Modified: haiku/trunk/src/system/kernel/vm/vm_page.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/vm_page.cpp        2010-07-06 02:17:43 UTC 
(rev 37410)
+++ haiku/trunk/src/system/kernel/vm/vm_page.cpp        2010-07-06 14:31:34 UTC 
(rev 37411)
@@ -1309,8 +1309,8 @@
 static status_t
 mark_page_range_in_use(page_num_t startPage, page_num_t length, bool wired)
 {
-       TRACE(("mark_page_range_in_use: start 0x%lx, len 0x%lx\n",
-               startPage, length));
+       TRACE(("mark_page_range_in_use: start %#" B_PRIxPHYSADDR ", len %#"
+               B_PRIxPHYSADDR "\n", startPage, length));
 
        if (sPhysicalPageOffset > startPage) {
                dprintf("mark_page_range_in_use(%#" B_PRIxPHYSADDR ", %#" 
B_PRIxPHYSADDR
@@ -2832,8 +2832,8 @@
                        + args->physical_memory_range[i].size / B_PAGE_SIZE;
        }
 
-       TRACE(("first phys page = 0x%lx, end 0x%lx\n", sPhysicalPageOffset,
-               physicalPagesEnd));
+       TRACE(("first phys page = %#" B_PRIxPHYSADDR ", end %#" B_PRIxPHYSADDR 
"\n",
+               sPhysicalPageOffset, physicalPagesEnd));
 
        sNumPages = physicalPagesEnd - sPhysicalPageOffset;
 
@@ -2863,8 +2863,9 @@
        sPages = (vm_page *)vm_allocate_early(args, sNumPages * sizeof(vm_page),
                ~0L, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, 0);
 
-       TRACE(("vm_init: putting free_page_table @ %p, # ents %ld (size 
0x%x)\n",
-               sPages, sNumPages, (unsigned int)(sNumPages * 
sizeof(vm_page))));
+       TRACE(("vm_init: putting free_page_table @ %p, # ents %" B_PRIuPHYSADDR
+               " (size %#" B_PRIxPHYSADDR ")\n", sPages, sNumPages,
+               (phys_addr_t)(sNumPages * sizeof(vm_page))));
 
        // initialize the free page table
        for (uint32 i = 0; i < sNumPages; i++) {


Other related posts:

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