aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/usrp1_iface.cpp
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-02-07 16:37:25 -0800
committerMartin Braun <martin.braun@ettus.com>2017-02-20 17:13:15 -0800
commit21aad77c9ca07f4271136b9241f5adb00a6bb908 (patch)
tree636ffe3ab2296e9afa661d3a12eb359224cd3254 /host/lib/usrp/usrp1/usrp1_iface.cpp
parent2b33f2bb4c01d4306fd46f78edf6e355a03e2ed7 (diff)
downloaduhd-21aad77c9ca07f4271136b9241f5adb00a6bb908.tar.gz
uhd-21aad77c9ca07f4271136b9241f5adb00a6bb908.tar.bz2
uhd-21aad77c9ca07f4271136b9241f5adb00a6bb908.zip
utils: introduce new logging API and remove msg API
Diffstat (limited to 'host/lib/usrp/usrp1/usrp1_iface.cpp')
-rw-r--r--host/lib/usrp/usrp1/usrp1_iface.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_iface.cpp b/host/lib/usrp/usrp1/usrp1_iface.cpp
index b65f8fa2f..2d28ad542 100644
--- a/host/lib/usrp/usrp1/usrp1_iface.cpp
+++ b/host/lib/usrp/usrp1/usrp1_iface.cpp
@@ -49,10 +49,10 @@ public:
{
uint32_t swapped = uhd::htonx(value);
- UHD_LOGV(always)
+ UHD_LOGGER_DEBUG("USRP1")
<< "poke32("
<< std::dec << std::setw(2) << addr << ", 0x"
- << std::hex << std::setw(8) << value << ")" << std::endl
+ << std::hex << std::setw(8) << value << ")"
;
uint8_t w_index_h = SPI_ENABLE_FPGA & 0xff;
@@ -70,9 +70,9 @@ public:
uint32_t peek32(const uint32_t addr)
{
- UHD_LOGV(always)
+ UHD_LOGGER_DEBUG("USRP1")
<< "peek32("
- << std::dec << std::setw(2) << addr << ")" << std::endl
+ << std::dec << std::setw(2) << addr << ")"
;
uint32_t value_out;
@@ -129,12 +129,12 @@ public:
size_t num_bits,
bool readback)
{
- UHD_LOGV(always)
- << "transact_spi: " << std::endl
- << " slave: " << which_slave << std::endl
- << " bits: " << bits << std::endl
- << " num_bits: " << num_bits << std::endl
- << " readback: " << readback << std::endl
+ UHD_LOGGER_DEBUG("USRP1")
+ << "transact_spi: "
+ << " slave: " << which_slave
+ << " bits: " << bits
+ << " num_bits: " << num_bits
+ << " readback: " << readback
;
UHD_ASSERT_THROW((num_bits <= 32) && !(num_bits % 8));
size_t num_bytes = num_bits / 8;