aboutsummaryrefslogtreecommitdiffstats
path: root/host/include/uhd/utils/log_add.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/include/uhd/utils/log_add.hpp')
-rw-r--r--host/include/uhd/utils/log_add.hpp30
1 files changed, 14 insertions, 16 deletions
diff --git a/host/include/uhd/utils/log_add.hpp b/host/include/uhd/utils/log_add.hpp
index 3b552d3a4..36a34523e 100644
--- a/host/include/uhd/utils/log_add.hpp
+++ b/host/include/uhd/utils/log_add.hpp
@@ -13,23 +13,21 @@
#include <uhd/utils/log.hpp>
#include <functional>
-namespace uhd {
- namespace log {
+namespace uhd { namespace log {
- /*! Logging function type
- *
- * Every logging_backend has to define a function with this signature.
- * Can be added to the logging core.
- */
- typedef std::function<void(const uhd::log::logging_info&)> log_fn_t ;
+/*! Logging function type
+ *
+ * Every logging_backend has to define a function with this signature.
+ * Can be added to the logging core.
+ */
+typedef std::function<void(const uhd::log::logging_info&)> log_fn_t;
- /*! Add logging backend to the log system
- *
- * \param key Identifies the logging backend in the logging core
- * \param logger_fn function which actually logs messages to this backend
- */
- UHD_API void add_logger(const std::string &key, log_fn_t logger_fn);
- }
-} /* namespace uhd::log */
+/*! Add logging backend to the log system
+ *
+ * \param key Identifies the logging backend in the logging core
+ * \param logger_fn function which actually logs messages to this backend
+ */
+UHD_API void add_logger(const std::string& key, log_fn_t logger_fn);
+}} /* namespace uhd::log */
#endif /* INCLUDED_UHD_UTILS_LOG_ADD_HPP */