summaryrefslogtreecommitdiff
path: root/src/module.c
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-04-16 00:53:48 +0000
committerqiuyiuestc <[email protected]>2010-04-16 00:53:48 +0000
commit0d7a1c0be7f6e6ab561ef982f4efd9f7f04ab1ee (patch)
tree27a431d9c825741e39813d396f6f33b0b08ec425 /src/module.c
parent99213611623be97274eb19bfa23aca8abcf9d19c (diff)
module developing
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@625 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/module.c b/src/module.c
index a2958cc66b..0bce29dc59 100644
--- a/src/module.c
+++ b/src/module.c
@@ -186,6 +186,10 @@ struct rt_module* rt_module_load(void* module_ptr, const rt_uint8_t* name)
struct rt_module* module = RT_NULL;
rt_uint8_t *ptr, *strtab, *shstrab;
+#ifdef RT_MODULE_DEBUG
+ rt_kprintf("rt_module_load: %s\n", name);
+#endif
+
/* check ELF header */
if (rt_memcmp(elf_module->e_ident, ELFMAG, SELFMAG) != 0 ||
elf_module->e_ident[EI_CLASS] != ELFCLASS32)