aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e100/e100_ctrl.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/e100/e100_ctrl.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/e100/e100_ctrl.cpp')
-rw-r--r--host/lib/usrp/e100/e100_ctrl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/e100/e100_ctrl.cpp b/host/lib/usrp/e100/e100_ctrl.cpp
index 777d1b5d5..41525300c 100644
--- a/host/lib/usrp/e100/e100_ctrl.cpp
+++ b/host/lib/usrp/e100/e100_ctrl.cpp
@@ -19,7 +19,7 @@
#include "e100_regs.hpp"
#include <uhd/exception.hpp>
#include <uhd/utils/log.hpp>
-#include <uhd/utils/msg.hpp>
+
#include <sys/ioctl.h> //ioctl
#include <fcntl.h> //open, close
#include <linux/usrp_e.h> //ioctl structures and constants
@@ -218,7 +218,7 @@ public:
void write_uart(const std::string &buf){
const ssize_t ret = ::write(_node_fd, buf.c_str(), buf.size());
- if (size_t(ret) != buf.size()) UHD_LOG << ret;
+ if (size_t(ret) != buf.size()) UHD_LOGGER_DEBUG("E100")<< ret;
}
std::string read_uart(double timeout){
@@ -329,7 +329,7 @@ public:
* Structors
******************************************************************/
e100_ctrl_impl(const std::string &node){
- UHD_MSG(status) << "Opening device node " << node << "..." << std::endl;
+ UHD_LOGGER_INFO("E100") << "Opening device node " << node << "..." ;
//open the device node and check file descriptor
if ((_node_fd = ::open(node.c_str(), O_RDWR)) < 0){
@@ -349,7 +349,7 @@ public:
edge_file << "rising" << std::endl << std::flush;
edge_file.close();
_irq_fd = ::open("/sys/class/gpio/gpio147/value", O_RDONLY);
- if (_irq_fd < 0) UHD_MSG(error) << "Unable to open GPIO for IRQ\n";
+ if (_irq_fd < 0) UHD_LOGGER_ERROR("E100") << "Unable to open GPIO for IRQ\n";
}
~e100_ctrl_impl(void){