File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,9 @@ int main(int argc, char **args)
273273 attr .data .user .elf_program = opt_prog_name ;
274274#endif
275275
276+ /* enable or disable the logging outputs */
277+ rv_log_set_quiet (opt_quiet_outputs );
278+
276279 /* create the RISC-V runtime */
277280 rv = rv_create (& attr );
278281 if (!rv ) {
Original file line number Diff line number Diff line change @@ -417,9 +417,6 @@ riscv_t *rv_create(riscv_user_t rv_attr)
417417 rv_log_set_level (attr -> log_level );
418418 rv_log_info ("Log level: %s" , rv_log_level_string (attr -> log_level ));
419419
420- /* enable the log */
421- rv_log_set_quiet (false);
422-
423420#if !RV32_HAS (SYSTEM ) || (RV32_HAS (SYSTEM ) && RV32_HAS (ELF_LOADER ))
424421 elf_t * elf = elf_new ();
425422 assert (elf );
You can’t perform that action at this time.
0 commit comments