From: Tim 'mithro' Ansell Date: Sun, 12 Apr 2020 01:23:40 +0000 (-0700) Subject: litex_sim: Better error messages on failure to load module. X-Git-Tag: 24jan2021_ls180~424^2~18 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0658421ccdc63dff6182ff5cf8c66f25c5774d0;p=litex.git litex_sim: Better error messages on failure to load module. --- diff --git a/litex/build/sim/core/modules.c b/litex/build/sim/core/modules.c index f8d66da7..2d12a771 100644 --- 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; }