Kernel/tpl_mm_phys - Added improved debug when allocating >1 pages
authorJohn Hodge <[email protected]>
Mon, 17 Oct 2011 02:26:59 +0000 (10:26 +0800)
committerJohn Hodge <[email protected]>
Mon, 17 Oct 2011 02:26:59 +0000 (10:26 +0800)
Kernel/include/tpl_mm_phys_bitmap.h

index 0874ab6..39444d9 100644 (file)
@@ -223,6 +223,12 @@ tPAddr MM_AllocPhysRange(int Pages, int MaxBits)
 
        #if TRACE_ALLOCS
        LogF("MM_AllocPhysRange: %P (%i pages)\n", ret, Pages);
+       if(Pages > 1) {
+               LogF(" also");
+               for(i = 1; i < Pages; i++)
+                       LogF(" %P", ret+i);
+               LogF("\n");
+       }
        #endif
 
        #if USE_SUPER_BITMAP

UCC git Repository :: git.ucc.asn.au