Skip to content

Commit 11c4364

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 34efc23 commit 11c4364

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/sm_at_host.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ 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);
1040+
LOG_DBG("URC ctx=%p: %s", ctx, (const char *)data);
10411041
if (!ctx) {
10421042
/* Safe to assume that already buffered URCs are outdated as well */
10431043
ring_buf_reset(&urc_buf);
@@ -1052,6 +1052,8 @@ 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 pipe ctx=%p: %s", ctx, (const char *)data);
1056+
10551057
/* Pipe specific URC */
10561058
struct urc_msg *msg = calloc(1, sizeof(struct urc_msg) + len + 1);
10571059

0 commit comments

Comments
 (0)