litex_sim: Better error messages on failure to load module.

This commit is contained in:
Tim 'mithro' Ansell 2020-04-11 18:23:40 -07:00
parent d0d2f2824b
commit a0658421cc
1 changed files with 4 additions and 4 deletions

View File

@ -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; struct ext_module_list_s *list = NULL;
int ret=RC_OK; int ret=RC_OK;
if(!first || !name || !found) if(!first || !name || !found)
{ {
ret = RC_INVARG; ret = RC_INVARG;
eprintf("Invalid arg\n"); eprintf("Invalid first:%s arg:%s found:%p\n", first, name, found);
goto out; 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; struct module_s *list = NULL;
int ret=RC_OK; int ret=RC_OK;
if(!first || !name || !found) if(!first || !name || !found)
{ {
ret = RC_INVARG; ret = RC_INVARG;
eprintf("Invalid arg\n"); eprintf("Invalid first:%s arg:%s found:%p\n", first, name, found);
goto out; goto out;
} }