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:
parent
327afd2c56
commit
966932a033
1 changed files with 1 additions and 1 deletions
|
@ -554,7 +554,7 @@ int modem_cmd_handler_setup_cmds(struct modem_iface *iface,
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue