From e59b2ba1286d21ad57a279094dec236255628bea Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Thu, 6 Apr 2017 10:11:10 -0700 Subject: utils: add cmake switch to disable fastpath logging --- host/include/uhd/utils/log.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/include') 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) -- cgit v1.2.3