summaryrefslogtreecommitdiffstats
path: root/host/lib/utils/warning.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-15 10:55:18 -0700
committerJosh Blum <josh@joshknows.com>2010-08-15 10:55:18 -0700
commit45c952399b92d5dc618c469cf48c9980ee6f0e80 (patch)
tree077870c0975c97cabd5d8c76e19965aeade2cdc6 /host/lib/utils/warning.cpp
parent9cb9e7d52255d3e14e57867eee76b555f705954c (diff)
parent98ba0cc067489d417342314a7e7408d2dbbc8250 (diff)
downloaduhd-45c952399b92d5dc618c469cf48c9980ee6f0e80.tar.gz
uhd-45c952399b92d5dc618c469cf48c9980ee6f0e80.tar.bz2
uhd-45c952399b92d5dc618c469cf48c9980ee6f0e80.zip
Merge branch 'next' into usrp1
Diffstat (limited to 'host/lib/utils/warning.cpp')
-rw-r--r--host/lib/utils/warning.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/host/lib/utils/warning.cpp b/host/lib/utils/warning.cpp
index ae4d4c7aa..8a7d35a23 100644
--- a/host/lib/utils/warning.cpp
+++ b/host/lib/utils/warning.cpp
@@ -16,7 +16,7 @@
//
#include <uhd/utils/warning.hpp>
-#include <boost/algorithm/string.hpp>
+#include <uhd/utils/algorithm.hpp>
#include <boost/foreach.hpp>
#include <iostream>
#include <vector>
@@ -24,13 +24,9 @@
using namespace uhd;
void uhd::print_warning(const std::string &msg){
- //extract the message lines
- std::vector<std::string> lines;
- boost::split(lines, msg, boost::is_any_of("\n"));
-
//print the warning message
std::cerr << std::endl << "Warning:" << std::endl;
- BOOST_FOREACH(const std::string &line, lines){
+ BOOST_FOREACH(const std::string &line, std::split_string(msg, "\n")){
std::cerr << " " << line << std::endl;
}
}