drivers: modem: Add debug log for matching direct cmds

Add a log message for when a direct cmd is matched to ease debugging.

Signed-off-by: Tobias Svehagen <tobias.svehagen@gmail.com>
This commit is contained in:
Tobias Svehagen 2020-07-02 08:58:56 +02:00 committed by Carles Cufí
commit 0d50372ce9

View file

@ -318,6 +318,8 @@ static void cmd_handler_process(struct modem_cmd_handler *cmd_handler,
/* Wait for more data */
break;
} else if (ret > 0) {
LOG_DBG("match direct cmd [%s] (ret:%d)",
log_strdup(cmd->cmd), ret);
data->rx_buf = net_buf_skip(data->rx_buf, ret);
}