From 47f64aaf95701d02a6b149b72422d319c8d99536 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Sun, 1 May 2016 12:26:29 -0700 Subject: [PATCH] Remove debug printfs. --- riscv/devices.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } -- 2.30.2