summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/binfmt_loadmodule.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-25 00:05:11 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-25 00:05:11 +0000
commitdfab3df14acb516e4a7e127b4ced4d1d755fcb59 (patch)
tree7ad2779537de1ab2f84552c6c1580a203c1f80da /nuttx/binfmt/binfmt_loadmodule.c
parentf183944854afe2bd8ccb56ad20f79e3aa371dc02 (diff)
downloadnuttx-dfab3df14acb516e4a7e127b4ced4d1d755fcb59.tar.gz
nuttx-dfab3df14acb516e4a7e127b4ced4d1d755fcb59.tar.bz2
nuttx-dfab3df14acb516e4a7e127b4ced4d1d755fcb59.zip
Initial NXFLAT debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1943 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/binfmt/binfmt_loadmodule.c')
-rw-r--r--nuttx/binfmt/binfmt_loadmodule.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/nuttx/binfmt/binfmt_loadmodule.c b/nuttx/binfmt/binfmt_loadmodule.c
index bad6ca712..0bed16f3d 100644
--- a/nuttx/binfmt/binfmt_loadmodule.c
+++ b/nuttx/binfmt/binfmt_loadmodule.c
@@ -87,14 +87,10 @@
int load_module(FAR struct binary_s *bin)
{
FAR struct binfmt_s *binfmt;
- int ret;
+ int ret = -ENOENT;
#ifdef CONFIG_DEBUG
- if (!bin || !bin->filename)
- {
- ret = -EINVAL;
- }
- else
+ if (bin && bin->filename)
#endif
{
bdbg("Loading %s\n", bin->filename);
@@ -119,6 +115,7 @@ int load_module(FAR struct binary_s *bin)
{
/* Successfully loaded -- break out with ret == 0 */
+ bvdbg("Successfully loaded module %s\n", bin->filename);
dump_module(bin);
break;
}