Skip to content

Logging does not honor -q argument #561

@wezm

Description

@wezm

Passing -q does not change the output to only include the register dump. E.g.

$ rv32emu -d - -q tests/btohex
10:25:54 INFO  src/riscv.c:418: Log level: TRACE
10:25:54 INFO  src/riscv.c:434: tests/btohex ELF loaded
10:25:54 INFO  src/main.c:283: RISC-V emulator is created and ready to run
{
  "x0": 0,
  "x1": 50,
  "x2": 516080,
  "x3": 0,
  "x4": 0,
  "x5": 93,
  "x6": 65,
  "x7": 0,
  "x8": 0,
  "x9": 0,
  "x10": 0,
  "x11": 16693,
  "x12": 72,
  "x13": 0,
  "x14": 0,
  "x15": 0
}
10:25:54 INFO  src/main.c:297: RISC-V emulator is destroyed

It seems the log is always enabled at:

rv_log_set_quiet(false);

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions