[syslinux] [PATCH] elflink: print error message in spawn_load()
Sebastian Herbszt
herbszt at gmx.de
Sun Jul 1 08:19:49 PDT 2012
Print error message in spawn_load() if module loading failed.
Signed-off-by: Sebastian Herbszt <herbszt at gmx.de>
---
com32/lib/sys/module/exec.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/com32/lib/sys/module/exec.c b/com32/lib/sys/module/exec.c
index 29d0a2f..8ac74e4 100644
--- a/com32/lib/sys/module/exec.c
+++ b/com32/lib/sys/module/exec.c
@@ -219,6 +219,9 @@ int spawn_load(const char *name, int argc, char **argv)
res = module_load(module);
if (res != 0) {
+ if (res != 17) { /* EEXIST */
+ printf("Failed to load %s\n", name);
+ }
_module_unload(module);
return res;
}
--
1.7.3.4
More information about the Syslinux
mailing list