aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-04-06 10:11:10 -0700
committerMartin Braun <martin.braun@ettus.com>2017-04-06 13:39:31 -0700
commite59b2ba1286d21ad57a279094dec236255628bea (patch)
tree253aaa3f6e4c206718f8b107d27fbe96bdf3023d /host/include
parentb8628dad4667649ce7f377e869d91fdcd90e10a2 (diff)
downloaduhd-e59b2ba1286d21ad57a279094dec236255628bea.tar.gz
uhd-e59b2ba1286d21ad57a279094dec236255628bea.tar.bz2
uhd-e59b2ba1286d21ad57a279094dec236255628bea.zip
utils: add cmake switch to disable fastpath logging
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/utils/log.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/include/uhd/utils/log.hpp b/host/include/uhd/utils/log.hpp
index d90fb4667..ce6ce16e7 100644
--- a/host/include/uhd/utils/log.hpp
+++ b/host/include/uhd/utils/log.hpp
@@ -182,8 +182,12 @@ namespace uhd {
#define UHD_LOG_FATAL(component, message)
#endif
+#ifndef UHD_LOG_FASTPATH_DISABLE
#define UHD_LOG_FASTPATH(message) \
std::cerr << message << std::flush;
+#else
+#define UHD_LOG_FASTPATH(message)
+#endif
// iostream-style logging
#define UHD_LOGGER_TRACE(component) _UHD_LOG_INTERNAL(component, uhd::log::trace)