aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/elf_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/elflink/elf_module.c')
-rw-r--r--com32/elflink/elf_module.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/com32/elflink/elf_module.c b/com32/elflink/elf_module.c
index fedebf7f..64c7b977 100644
--- a/com32/elflink/elf_module.c
+++ b/com32/elflink/elf_module.c
@@ -842,8 +842,8 @@ int module_load(struct elf_module *module) {
// The file image is no longer needed
image_unload(module);
- DBG_PRINT("MODULE %s LOADED SUCCESSFULLY (&init@0x%08X, &exit@0x%08X)\n",
- module->name, module->init_func, module->exit_func);
+ DBG_PRINT("MODULE %s LOADED SUCCESSFULLY (init@0x%08X, exit@0x%08X)\n",
+ module->name, *(module->init_func), *(module->exit_func));
return 0;
@@ -917,6 +917,9 @@ int module_unload(struct elf_module *module) {
// Release the loaded segments or sections
elf_free(module->module_addr);
+
+ DBG_PRINT("%s MODULE %s UNLOADED\n", module->shallow ? "SHALLOW" : "",
+ module->name);
// Release the module structure
free(module);