[syslinux] Chainc.32 missing some \n one error messages
Kim Mik
kimmik999999 at yahoo.co.uk
Sun Aug 16 16:30:04 PDT 2009
I got the following message with chain.c32
=====================
Loader file too largeBoot:
=====================
Like you can see, there should be a new line after 'large'.
I guess that some other error messages, will result in the same behavior.
Gert Hulselmans
$ diff -u com32/modules/chain.c.old com32/modules/chain.c.new
--- com32/modules/chain.c.old 2009-08-17 01:06:11.887394937 +0200
+++ com32/modules/chain.c.new 2009-08-17 01:11:33.656402727 +0200
@@ -446,7 +446,7 @@
mmap = syslinux_memory_map();
if (!mmap) {
- error("Cannot read system memory map");
+ error("Cannot read system memory map\n");
return;
}
@@ -547,11 +547,11 @@
return;
too_big:
- error("Loader file too large");
+ error("Loader file too large\n");
return;
enomem:
- error("Out of memory");
+ error("Out of memory\n");
return;
}
@@ -614,7 +614,7 @@
} else if (!strncmp(argv[i], "seg=", 4)) {
uint32_t segval = strtoul(argv[i] + 4, NULL, 0);
if (segval < 0x50 || segval > 0x9f000) {
- error("Invalid segment");
+ error("Invalid segment\n");
goto bail;
}
opt.seg = segval;
More information about the Syslinux
mailing list