From: Tim Newsome Date: Sun, 1 May 2016 19:26:29 +0000 (-0700) Subject: Remove debug printfs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47f64aaf95701d02a6b149b72422d319c8d99536;p=riscv-isa-sim.git Remove debug printfs. --- diff --git a/riscv/devices.cc b/riscv/devices.cc index 4e88a1d..c7a63b0 100644 --- a/riscv/devices.cc +++ b/riscv/devices.cc @@ -7,12 +7,9 @@ void bus_t::add_device(reg_t addr, abstract_device_t* dev) bool bus_t::load(reg_t addr, size_t len, uint8_t* bytes) { - fprintf(stderr, "bus load(0x%lx, %ld)\n", addr, len); auto it = devices.lower_bound(-addr); - if (it == devices.end()) { - fprintf(stderr, " -> false\n"); + if (it == devices.end()) return false; - } return it->second->load(addr - -it->first, len, bytes); }