From 2e47be027ce7625fae951107c7b52b527e402503 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 11 Aug 2017 15:35:22 -0700 Subject: [PATCH] Turn off debug module debug printfs. Nobody wants to see all that, and if they do they should recompile. --- riscv/debug_module.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2