Nobody wants to see all that, and if they do they should recompile.
#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)
}
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;