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>
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;