elflink: Include '\n' when printing error messages
authorMatt Fleming <matt.fleming@intel.com>
Fri, 25 Nov 2011 15:09:11 +0000 (15:09 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 2 Dec 2011 12:13:30 +0000 (12:13 +0000)
We need to print a newline character at the end of our error messages
otherwise the syslinux command prompt may overwrite them, making them
impossible to see.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/lib/sys/module/common.c

index b1bf2fc..71ee0f0 100644 (file)
@@ -353,7 +353,7 @@ int check_symbols(struct elf_module *module)
                        if (strong_count == 0 && weak_count == 0)
                        {
                                DBG_PRINT("Symbol %s is undefined\n", crt_name);
-                               printf("Undef symbol FAIL: %s ",crt_name);
+                               printf("Undef symbol FAIL: %s\n",crt_name);
                                return -1;
                        }
                }