summaryrefslogtreecommitdiffstats
path: root/host/lib/utils/log.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-05-04 19:53:01 -0700
committerJosh Blum <josh@joshknows.com>2011-05-04 19:53:01 -0700
commit09be0518cee887878f3b070adea25eccc4c06e60 (patch)
treed25df33a4860116d51fd5ac49753739397948353 /host/lib/utils/log.cpp
parent805da3ef3d5b04dfa39587c531a3415b09d2ea5b (diff)
downloaduhd-09be0518cee887878f3b070adea25eccc4c06e60.tar.gz
uhd-09be0518cee887878f3b070adea25eccc4c06e60.tar.bz2
uhd-09be0518cee887878f3b070adea25eccc4c06e60.zip
uhd: removed more iostream stuff from usrp* implementations
Diffstat (limited to 'host/lib/utils/log.cpp')
-rw-r--r--host/lib/utils/log.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/utils/log.cpp b/host/lib/utils/log.cpp
index d99ce01c4..f67a14411 100644
--- a/host/lib/utils/log.cpp
+++ b/host/lib/utils/log.cpp
@@ -140,7 +140,7 @@ private:
//! set the log level from a string that is either a digit or an enum name
void _set_log_level(const std::string &log_level_str){
const uhd::_log::verbosity_t log_level = uhd::_log::verbosity_t(log_level_str[0]-'0');
- if (std::isdigit(log_level_str[0]) and log_level >= uhd::_log::always and log_level <= uhd::_log::very_rarely){
+ if (std::isdigit(log_level_str[0]) and log_level >= uhd::_log::always and log_level <= uhd::_log::never){
_log_level = log_level;
}
#define if_lls_equal(name) else if(log_level_str == #name) _log_level = uhd::_log::name
@@ -149,6 +149,7 @@ private:
if_lls_equal(regularly);
if_lls_equal(rarely);
if_lls_equal(very_rarely);
+ if_lls_equal(never);
}
//available stream objects