aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/cal/interpolation.ipp
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-02-07 16:37:25 -0800
committerMartin Braun <martin.braun@ettus.com>2017-02-20 17:13:15 -0800
commit21aad77c9ca07f4271136b9241f5adb00a6bb908 (patch)
tree636ffe3ab2296e9afa661d3a12eb359224cd3254 /host/lib/cal/interpolation.ipp
parent2b33f2bb4c01d4306fd46f78edf6e355a03e2ed7 (diff)
downloaduhd-21aad77c9ca07f4271136b9241f5adb00a6bb908.tar.gz
uhd-21aad77c9ca07f4271136b9241f5adb00a6bb908.tar.bz2
uhd-21aad77c9ca07f4271136b9241f5adb00a6bb908.zip
utils: introduce new logging API and remove msg API
Diffstat (limited to 'host/lib/cal/interpolation.ipp')
-rw-r--r--host/lib/cal/interpolation.ipp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/cal/interpolation.ipp b/host/lib/cal/interpolation.ipp
index f58b70b68..1544b041c 100644
--- a/host/lib/cal/interpolation.ipp
+++ b/host/lib/cal/interpolation.ipp
@@ -19,7 +19,7 @@
#define INCLUDED_UHD_INTERPOLATION_IPP
#include "interpolation.hpp"
-#include <uhd/utils/msg.hpp>
+#include <uhd/utils/log.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/lu.hpp>
@@ -175,9 +175,9 @@ CAL_INTERP_METHOD(const out_type, bl_interp, CONTAINER_T &data, const ARGS_T &ar
// Fall back to 1D interpolation if the matrix is singular
if (is_singular) {
// Warn the user that the A matrix is singular
- UHD_MSG(warning) << "Bilinear interpolation: singular matrix detected." << std::endl
- << "Performing 1D linear interpolation against the nearest measurements." << std::endl
- << "Provide calibration data with more measurements" << std::endl;
+ UHD_LOGGER_WARNING("CAL") << "Bilinear interpolation: singular matrix detected. "
+ << "Performing 1D linear interpolation against the nearest measurements. "
+ << "Provide calibration data with more measurements";
output = (b[7] - b[6]) / 2.0;
output += b[6];