diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-11-23 14:39:06 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-11-23 14:39:06 +0100 |
commit | 32b3c2e4b279a40b3ed4ede87597ee0e5f0d7f90 (patch) | |
tree | 3906cebc4a7deacbb712374f66035e44864613fc /Transceiver52M | |
parent | 1c4bbadda63e91fec4ae0a4134a22b299025a769 (diff) |
lms: Use LimeSuite.h log level defines instead of hardcoded values
Change-Id: Iee693da1a0fa1db23deafa8d3845c04171e24799
Diffstat (limited to 'Transceiver52M')
-rw-r--r-- | Transceiver52M/device/lms/LMSDevice.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp index 32c3d15..318df17 100644 --- a/Transceiver52M/device/lms/LMSDevice.cpp +++ b/Transceiver52M/device/lms/LMSDevice.cpp @@ -62,10 +62,10 @@ static void lms_log_callback(int lvl, const char *msg) /* map lime specific log levels */ static const int lvl_map[5] = { [0] = LOGL_FATAL, - [1] = LOGL_ERROR, - [2] = LOGL_NOTICE, - [3] = LOGL_INFO, - [4] = LOGL_DEBUG, + [LMS_LOG_ERROR] = LOGL_ERROR, + [LMS_LOG_WARNING] = LOGL_NOTICE, + [LMS_LOG_INFO] = LOGL_INFO, + [LMS_LOG_DEBUG] = LOGL_DEBUG, }; /* protect against future higher log level values (lower importance) */ if ((unsigned int) lvl >= ARRAY_SIZE(lvl_map)) |