projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0d2f28
)
litex_sim: Better error messages on failure to load module.
author
Tim 'mithro' Ansell
<me@mith.ro>
Sun, 12 Apr 2020 01:23:40 +0000
(18:23 -0700)
committer
Tim 'mithro' Ansell
<me@mith.ro>
Sun, 12 Apr 2020 01:35:39 +0000
(18:35 -0700)
litex/build/sim/core/modules.c
patch
|
blob
|
history
diff --git
a/litex/build/sim/core/modules.c
b/litex/build/sim/core/modules.c
index f8d66da7a5e48d16c2984c6d7547bec4c843c8aa..2d12a771f3fc64ce6bb5112fc7515fc578d98731 100644
(file)
--- a/
litex/build/sim/core/modules.c
+++ b/
litex/build/sim/core/modules.c
@@
-118,11
+118,11
@@
int litex_sim_find_ext_module(struct ext_module_list_s *first, char *name , stru
{
struct ext_module_list_s *list = NULL;
int ret=RC_OK;
-
+
if(!first || !name || !found)
{
ret = RC_INVARG;
- eprintf("Invalid
arg\n"
);
+ eprintf("Invalid
first:%s arg:%s found:%p\n", first, name, found
);
goto out;
}
@@
-140,11
+140,11
@@
int litex_sim_find_module(struct module_s *first, char *name , struct module_s *
{
struct module_s *list = NULL;
int ret=RC_OK;
-
+
if(!first || !name || !found)
{
ret = RC_INVARG;
- eprintf("Invalid
arg\n"
);
+ eprintf("Invalid
first:%s arg:%s found:%p\n", first, name, found
);
goto out;
}