This has bothered me for a while.  By changing %u to %p this debug
message becomes actually useful for checking offset problems.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
	* kern/mm.c (grub_mm_init_region): Improve debug message.

diff -u -x configure -x config.h.in -ur grub2/kern/mm.c memdebug/kern/mm.c
--- grub2/kern/mm.c	2007-12-30 09:52:04.000000000 +0100
+++ memdebug/kern/mm.c	2008-01-15 18:07:14.000000000 +0100
@@ -143,7 +143,7 @@
   grub_mm_header_t h;
   grub_mm_region_t r, *p, q;
 
-  grub_dprintf ("mem", "Using memory for heap: addr=%p, size=%u\n", addr, (unsigned int) size);
+  grub_dprintf ("mem", "Using memory for heap: start=%p, end=%p\n", addr, addr + size);
 
   /* If this region is too small, ignore it.  */
   if (size < GRUB_MM_ALIGN * 2)
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to