diff --git a/fpga/src/villas-fpga-ctrl.cpp b/fpga/src/villas-fpga-ctrl.cpp index c6abee39c..ad803a06e 100644 --- a/fpga/src/villas-fpga-ctrl.cpp +++ b/fpga/src/villas-fpga-ctrl.cpp @@ -141,17 +141,18 @@ void readFromDmaToStdOut( int cnt = 0; while (true) { - SPDLOG_TRACE("Read from stream and write to address {}:{:#x}", - block[next]->getAddrSpaceId(), block[next]->getOffset()); + logger->trace("Read from stream and write to address {}:{:#x}", + block[next]->getAddrSpaceId(), block[next]->getOffset()); // We could use the number of interrupts to determine if we missed a chunk of data dma->read(*block[next], block[next]->getSize()); auto c = dma->readComplete(); if (c.interrupts > 1) { - SPDLOG_WARN("Missed {} interrupts", c.interrupts - 1); + logger->warn("Missed {} interrupts", c.interrupts - 1); } - SPDLOG_TRACE("bytes: {}, intrs: {}, bds: {}", c.bytes, c.interrupts, c.bds); + logger->trace("bytes: {}, intrs: {}, bds: {}", c.bytes, c.interrupts, + c.bds); try { for (size_t i = 0; i * 4 < c.bytes; i++) { int32_t ival = mem[cur][i]; @@ -165,7 +166,7 @@ void readFromDmaToStdOut( } formatter->output(std::cout); } catch (const std::exception &e) { - SPDLOG_WARN("Failed to output data: {}", e.what()); + logger->warn("Failed to output data: {}", e.what()); } cur = next; @@ -204,6 +205,7 @@ int main(int argc, char *argv[]) { // Logging setup logging.setLevel(spdlog::level::trace); + logger->set_level(spdlog::level::trace); fpga::setupColorHandling(); if (configFile.empty()) {