Merge pull request #534 from fjullien/fix_litex_sim_warn

litex/sim: fix compiler warnings
This commit is contained in:
enjoy-digital 2020-05-20 19:49:04 +02:00 committed by GitHub
commit c2e9a26ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,7 @@ int litex_sim_load_ext_modules(struct ext_module_list_s **mlist)
tinydir_file file;
dylib_ref lib;
int (*litex_sim_ext_module_init)(int (*reg)(struct ext_module_s *));
char name[100];
char name[300];
if (tinydir_open(&dir, "./modules/") == -1)
{
ret = RC_ERROR;
@ -122,7 +122,7 @@ int litex_sim_find_ext_module(struct ext_module_list_s *first, char *name , stru
if(!first || !name || !found)
{
ret = RC_INVARG;
eprintf("Invalid first:%s arg:%s found:%p\n", first, name, found);
eprintf("Invalid first:%s arg:%s found:%p\n", first->module->name, name, found);
goto out;
}
@ -144,7 +144,7 @@ int litex_sim_find_module(struct module_s *first, char *name , struct module_s *
if(!first || !name || !found)
{
ret = RC_INVARG;
eprintf("Invalid first:%s arg:%s found:%p\n", first, name, found);
eprintf("Invalid first:%s arg:%s found:%p\n", first->name, name, found);
goto out;
}

View File

@ -17,6 +17,7 @@ void litex_sim_eval(void *vdut);
void litex_sim_init_tracer(void *vdut);
void litex_sim_tracer_dump();
int litex_sim_got_finish();
void litex_sim_init_cmdargs(int argc, char *argv[]);
#if VM_COVERAGE
void litex_sim_coverage_dump();
#endif