summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-07-29 21:27:04 +0200
committerHarald Welte <laforge@osmocom.org>2020-07-29 21:27:04 +0200
commit9472ab91ba81132a5539f55ae214988698c0b332 (patch)
treeaf4838946af5113065e53a7f593fda8904d0f446
parentd897e7daa6138f815f2de71630e2a0de5f32ff64 (diff)
SCOC: log message type that was received for unknown local reference
A message like DLSCCP <0011> sccp_scoc.c:1653 Cannot find connection for local reference 1154 is not incredibly useful, as you don't even know what type of SCCP/SUA message had been received. Change-Id: I18af9d7e9ea4877b13bf98a980b0ba97c5ed6599
-rw-r--r--src/sccp_scoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c
index 015850e..1ce08f8 100644
--- a/src/sccp_scoc.c
+++ b/src/sccp_scoc.c
@@ -1649,8 +1649,8 @@ void sccp_scoc_rx_from_scrc(struct osmo_sccp_instance *inst,
conn_id = xua_msg_get_u32(xua, SUA_IEI_DEST_REF);
conn = conn_find_by_id(inst, conn_id);
if (!conn) {
- LOGP(DLSCCP, LOGL_NOTICE, "Cannot find connection for "
- "local reference %u\n", conn_id);
+ LOGP(DLSCCP, LOGL_NOTICE, "Received %s: Cannot find connection for "
+ "local reference %u\n", xua_hdr_dump(xua, &xua_dialect_sua), conn_id);
sccp_scoc_rx_unass_local_ref(inst, xua);
return;
}