lms: Use define LMS_LOG_CRITICAL instead of value

The define is available since v20.01.0 [1]

[1] https://github.com/myriadrf/LimeSuite/pull/275

Change-Id: Ie5bb99a76580c5780a24f190682700c5e69b3d85
This commit is contained in:
Pau Espin Pedrol
2019-08-21 11:57:55 +02:00
parent a0e1b20939
commit 1d4117faf4

View File

@@ -150,7 +150,7 @@ static void lms_log_callback(int lvl, const char *msg)
{
/* map lime specific log levels */
static const int lvl_map[5] = {
[0] = LOGL_FATAL,
[LMS_LOG_CRITICAL] = LOGL_FATAL,
[LMS_LOG_ERROR] = LOGL_ERROR,
[LMS_LOG_WARNING] = LOGL_NOTICE,
[LMS_LOG_INFO] = LOGL_INFO,