All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] improve grub_mm_init_region() debug message
@ 2008-01-15 17:17 Robert Millan
  2008-01-15 17:42 ` Pavel Roskin
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Millan @ 2008-01-15 17:17 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]


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 /.)

[-- Attachment #2: memdebug.diff --]
[-- Type: text/x-diff, Size: 597 bytes --]


	* 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)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-21 21:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-15 17:17 [PATCH] improve grub_mm_init_region() debug message Robert Millan
2008-01-15 17:42 ` Pavel Roskin
2008-01-15 18:00   ` Robert Millan
2008-01-19 21:50     ` Robert Millan
2008-01-20  2:26       ` Pavel Roskin
2008-01-21 17:02     ` Marco Gerards
2008-01-21 17:11       ` Robert Millan
2008-01-21 17:42         ` Marco Gerards
2008-01-21 20:58           ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.