zephyr: logging: Remove log_strdup calls

log_strdup function is no longer needed by the logger. Removing from
zephyr port.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2022-06-20 19:29:43 +02:00 committed by Carles Cufí
parent df717ac87a
commit 07eab463f9
1 changed files with 4 additions and 4 deletions

View File

@ -64,16 +64,16 @@ static void lvgl_log(const char *buf)
*/
switch (buf[1]) {
case 'E':
LOG_ERR("%s", log_strdup(buf + strlen("[Error] ")));
LOG_ERR("%s", buf + strlen("[Error] "));
break;
case 'W':
LOG_WRN("%s", log_strdup(buf + strlen("Warn] ")));
LOG_WRN("%s", buf + strlen("Warn] "));
break;
case 'I':
LOG_INF("%s", log_strdup(buf + strlen("[Info] ")));
LOG_INF("%s", buf + strlen("[Info] "));
break;
case 'T':
LOG_DBG("%s", log_strdup(buf + strlen("[Trace] ")));
LOG_DBG("%s", buf + strlen("[Trace] "));
break;
}
}