drivers: modem: add forgotten log_strdup call

The char pointer that is logged could get scoped out and so should be
strduped before logging.

Signed-off-by: Benjamin Lindqvist <benjamin.lindqvist@endian.se>
This commit is contained in:
Benjamin Lindqvist 2020-09-23 13:46:30 +02:00 committed by Carles Cufí
commit 966932a033

View file

@ -554,7 +554,7 @@ int modem_cmd_handler_setup_cmds(struct modem_iface *iface,
} }
if (ret < 0) { if (ret < 0) {
LOG_ERR("command %s ret:%d", cmds[i].send_cmd, ret); LOG_ERR("command %s ret:%d", log_strdup(cmds[i].send_cmd), ret);
break; break;
} }
} }