From 3bd915ff266df373b798f41266289e3f8c1ff1a0 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 17 Oct 2011 10:26:59 +0800 Subject: [PATCH] Kernel/tpl_mm_phys - Added improved debug when allocating >1 pages --- Kernel/include/tpl_mm_phys_bitmap.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Kernel/include/tpl_mm_phys_bitmap.h b/Kernel/include/tpl_mm_phys_bitmap.h index 0874ab62..39444d94 100644 --- a/Kernel/include/tpl_mm_phys_bitmap.h +++ b/Kernel/include/tpl_mm_phys_bitmap.h @@ -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 -- 2.20.1