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
This commit is contained in:
Harald Welte 2020-07-29 21:27:04 +02:00
parent d897e7daa6
commit 9472ab91ba
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}