diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-12-22 19:31:00 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-14 14:36:19 -0600 |
commit | 88d284816e8e91dda17b7a3edcbdfeec89de4843 (patch) | |
tree | b1e07740cb1b811a3dad246fc5075abf1fc3482f /mpm/python | |
parent | 09689f9805fcf00d8da9b907f617ba50a4abd699 (diff) | |
download | uhd-88d284816e8e91dda17b7a3edcbdfeec89de4843.tar.gz uhd-88d284816e8e91dda17b7a3edcbdfeec89de4843.tar.bz2 uhd-88d284816e8e91dda17b7a3edcbdfeec89de4843.zip |
mpm: 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 or MPM require a certain minor compat number to enable a feature,
the appropriate behaviour would be to print a warning only for that
case.
Diffstat (limited to 'mpm/python')
-rw-r--r-- | mpm/python/usrp_mpm/mpmutils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/mpmutils.py b/mpm/python/usrp_mpm/mpmutils.py index a569c85ad..377742e36 100644 --- a/mpm/python/usrp_mpm/mpmutils.py +++ b/mpm/python/usrp_mpm/mpmutils.py @@ -120,6 +120,7 @@ def assert_compat_number( "(major, minor) or (major, minor, build)") log_err = lambda msg: log.error(msg) if log is not None else None log_warn = lambda msg: log.warning(msg) if log is not None else None + log_debug = lambda msg: log.debug(msg) if log is not None else None expected_actual_str = "Expected: {:d}.{:d} Actual: {:d}.{:d}".format( expected_compat[0], expected_compat[1], actual_compat[0], actual_compat[1], @@ -134,7 +135,7 @@ def assert_compat_number( log_err(err_msg) raise RuntimeError(err_msg) if actual_compat[1] > expected_compat[1]: - log_warn("Minor compat ahead of expected compat{}. {}".format( + log_debug("Minor compat ahead of expected compat{}. {}".format( component_str, expected_actual_str )) if actual_compat[1] < expected_compat[1]: |