aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-03-29 16:36:29 -0700
committerMartin Braun <martin.braun@ettus.com>2018-03-30 14:22:33 -0700
commit9dddec48e7f5516e0c603d3eb540a169b50fa5a9 (patch)
tree92c0b5835a769d4f82552ff6f5df0f5c8e0fdafe /host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp
parentffeeb0362beb1368966a2ab54a2c2317485f504a (diff)
downloaduhd-9dddec48e7f5516e0c603d3eb540a169b50fa5a9.tar.gz
uhd-9dddec48e7f5516e0c603d3eb540a169b50fa5a9.tar.bz2
uhd-9dddec48e7f5516e0c603d3eb540a169b50fa5a9.zip
rfnoc: Update logging in some blocks
Updated the following blocks and components: Radio, DmaFIFO, block_ctrl_base and node_ctrl_base, blockdef_xml_impl, device3_impl. No functional changes. - Demoted some log messages - Consistent log style (use unique_id()) - Some adaptation of coding style where close to log statements
Diffstat (limited to 'host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp')
-rw-r--r--host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp b/host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp
index e27c20809..16ad7db6f 100644
--- a/host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp
+++ b/host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp
@@ -34,19 +34,20 @@ public:
_perifs[i].depth = DEFAULT_SIZE;
_perifs[i].core = dma_fifo_core_3000::make(_perifs[i].ctrl, USER_SR_BASE, USER_RB_BASE);
_perifs[i].core->resize(_perifs[i].base_addr, _perifs[i].depth);
- UHD_LOGGER_INFO("RFNOC DMA FIFO") << boost::format("Running BIST for FIFO %d... ") % i;
+ UHD_LOG_DEBUG(unique_id(), "Running BIST for FIFO " << i);
if (_perifs[i].core->ext_bist_supported()) {
uint32_t bisterr = _perifs[i].core->run_bist();
if (bisterr != 0) {
throw uhd::runtime_error(str(boost::format("BIST failed! (code: %d)\n") % bisterr));
} else {
double throughput = _perifs[i].core->get_bist_throughput();
- UHD_LOGGER_INFO("RFNOC DMA FIFO") << (boost::format("BIST passed (Throughput: %.0f MB/s)") % (throughput/1e6)) ;
+ UHD_LOGGER_INFO(unique_id()) << (boost::format("BIST passed (Throughput: %.0f MB/s)") % (throughput/1e6)) ;
}
} else {
if (_perifs[i].core->run_bist() == 0) {
- UHD_LOGGER_INFO("RFNOC DMA FIFO") << "BIST passed";
+ UHD_LOGGER_INFO(unique_id()) << "BIST passed";
} else {
+ UHD_LOGGER_ERROR(unique_id()) << "BIST failed!";
throw uhd::runtime_error("BIST failed!");
}
}