aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-02 17:00:38 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-02 17:00:38 -0700
commit6601e0554dbb56b0ecd784eed8ad9286b6182f1d (patch)
tree4e124adb63a2950950420b1b1043367ba105ea94 /com32
parent6257a519a5aaafdebe2dcc58672cc585708b596e (diff)
downloadsyslinux-6601e0554dbb56b0ecd784eed8ad9286b6182f1d.tar.gz
syslinux-6601e0554dbb56b0ecd784eed8ad9286b6182f1d.tar.xz
syslinux-6601e0554dbb56b0ecd784eed8ad9286b6182f1d.zip
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 <hpa@zytor.com>
Diffstat (limited to 'com32')
-rw-r--r--com32/lib/syslinux/dump_mmap.c2
1 files changed, 1 insertions, 1 deletions
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;