From 6601e0554dbb56b0ecd784eed8ad9286b6182f1d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 2 May 2009 17:00:38 -0700 Subject: syslinux_dump_memmap(): make it easier to spot errors Instead of stopping the memmap dump on SMT_END, stop it only on a null pointer. That way we can see if we have any bogus entries with SMT_END. Signed-off-by: H. Peter Anvin --- com32/lib/syslinux/dump_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'com32/lib') diff --git a/com32/lib/syslinux/dump_mmap.c b/com32/lib/syslinux/dump_mmap.c index 87b894ac..90ab840a 100644 --- a/com32/lib/syslinux/dump_mmap.c +++ b/com32/lib/syslinux/dump_mmap.c @@ -40,7 +40,7 @@ void syslinux_dump_memmap(FILE *file, struct syslinux_memmap *memmap) fprintf(file, "%10s %10s %10s\n" "--------------------------------\n", "Start", "Length", "Type"); - while (memmap->type != SMT_END) { + while (memmap->next) { fprintf(file, "0x%08x 0x%08x %10d\n", memmap->start, memmap->next->start - memmap->start, memmap->type); memmap = memmap->next; -- cgit v1.2.1