aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-01-25 11:23:06 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2022-01-25 13:11:13 -0600
commit5fd7feca0a70fbaa13c955c766b472945e15122a (patch)
treef6c0266f44ac672e3eab87c82d1941658ae34cdc /host/lib/utils
parentf4463198ac493b7380589f63a197153b041e71d5 (diff)
downloaduhd-5fd7feca0a70fbaa13c955c766b472945e15122a.tar.gz
uhd-5fd7feca0a70fbaa13c955c766b472945e15122a.tar.bz2
uhd-5fd7feca0a70fbaa13c955c766b472945e15122a.zip
uhd: Demote WARNING on minor compat mismatch to DEBUG
When the minor FPGA compat number on the device is ahead of what MPM expects, we no longer print a warning. That's because by definition, the FPGA is still compatible with the software in this case. If UHD requires a certain minor compat number to enable a feature, the appropriate behaviour would be to print a warning only for that case. This is the equivalent change to the MPM-only change in 88d28481.
Diffstat (limited to 'host/lib/utils')
-rw-r--r--host/lib/utils/compat_check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/utils/compat_check.cpp b/host/lib/utils/compat_check.cpp
index 834e23ee4..b20ee07cf 100644
--- a/host/lib/utils/compat_check.cpp
+++ b/host/lib/utils/compat_check.cpp
@@ -69,7 +69,7 @@ void uhd::assert_fpga_compat(const size_t uhd_major,
% fpga_component % fpga_major % fpga_minor % uhd_major % uhd_minor));
} else {
if (!log_component.empty()) {
- UHD_LOGGER_WARNING(log_component) << str(
+ UHD_LOGGER_DEBUG(log_component) << str(
boost::format("Non-critical minor compat number mismatch "
"for `%s': Expecting %d.%d, got %d.%d.")
% fpga_component % uhd_major % uhd_minor % fpga_major % fpga_minor);
@@ -77,7 +77,7 @@ void uhd::assert_fpga_compat(const size_t uhd_major,
}
} else if (uhd_minor < fpga_minor) {
if (!log_component.empty()) {
- UHD_LOGGER_WARNING(log_component) << str(
+ UHD_LOGGER_DEBUG(log_component) << str(
boost::format("Non-critical minor compat number mismatch "
"for `%s': Expecting %d.%d, got %d.%d.")
% fpga_component % uhd_major % uhd_minor % fpga_major % fpga_minor);