Skip to content

Commit ec2fe6e

Browse files
committed
app: Log pipe specific URCs
Pipe specific URC's haven't been logged. These are basically SM specific URCs such as #XSMS, and #XNRFCLOUD. URCs from modem have been logged in the past too. Signed-off-by: Tommi Rantanen <tommi.rantanen@nordicsemi.no>
1 parent 6859b47 commit ec2fe6e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/src/sm_at_host.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,13 +1037,13 @@ static int sm_at_send_internal(struct sm_at_host_ctx *ctx, const uint8_t *data,
10371037
if (urc) {
10381038
if (ctx == NULL) {
10391039
ctx = sm_at_host_get_urc_ctx();
1040-
LOG_DBG("URC: %s", (const char *)data);
10411040
if (!ctx) {
10421041
/* Safe to assume that already buffered URCs are outdated as well */
10431042
ring_buf_reset(&urc_buf);
1044-
LOG_DBG("No context available for URC");
1043+
LOG_DBG("No context available for URC: %s", (const char *)data);
10451044
return -EIO;
10461045
}
1046+
LOG_DBG("URC default pipe=%p: %s", ctx->pipe, (const char *)data);
10471047
ret = ring_buf_put(&urc_buf, data, len);
10481048
if (ret < len) {
10491049
LOG_ERR("URC buffer full, dropped %d bytes", len - ret);
@@ -1052,6 +1052,7 @@ static int sm_at_send_internal(struct sm_at_host_ctx *ctx, const uint8_t *data,
10521052
return -EIO;
10531053
}
10541054
} else {
1055+
LOG_DBG("URC to pipe=%p: %s", ctx->pipe, (const char *)data);
10551056
/* Pipe specific URC */
10561057
struct urc_msg *msg = calloc(1, sizeof(struct urc_msg) + len + 1);
10571058

0 commit comments

Comments
 (0)