From: Tim Newsome Date: Fri, 11 Aug 2017 22:35:22 +0000 (-0700) Subject: Turn off debug module debug printfs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e47be027ce7625fae951107c7b52b527e402503;p=riscv-isa-sim.git Turn off debug module debug printfs. Nobody wants to see all that, and if they do they should recompile. --- diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc index d828b72..17ec616 100644 --- a/riscv/debug_module.cc +++ b/riscv/debug_module.cc @@ -8,7 +8,7 @@ #include "debug_rom/debug_rom.h" #include "debug_rom/debug_rom_defines.h" -#if 1 +#if 0 # define D(x) x #else # define D(x) @@ -126,7 +126,7 @@ bool debug_module_t::store(reg_t addr, size_t len, const uint8_t* bytes) } if (addr >= debug_progbuf_start && ((addr + len) <= (debug_progbuf_start + sizeof(program_buffer)))) { - fprintf(stderr, "Successful write to program buffer %d bytes at %x\n", (int) len, (int) addr); + D(fprintf(stderr, "Successful write to program buffer %d bytes at %x\n", (int) len, (int) addr)); memcpy(program_buffer + addr - debug_progbuf_start, bytes, len); return true;