From b73c46ae97591b7758ed8e11ffda423cf9977d4a Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 3 Oct 2022 18:25:11 +0200 Subject: [PATCH] osmux: Log remote address upon rx of osmux pkt Related: SYS#5987 Change-Id: I391bc02a16eae1602680cb96128252f262852e14 --- src/common/osmux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/osmux.c b/src/common/osmux.c index 02faab413..e178e0c09 100644 --- a/src/common/osmux.c +++ b/src/common/osmux.c @@ -263,9 +263,11 @@ static int osmux_read_fd_cb(struct osmo_fd *ofd, unsigned int what) while ((osmuxh = osmux_xfrm_output_pull(msg)) != NULL) { struct gsm_lchan *lchan = osmux_lchan_find(bts, &rem_addr, osmuxh->circuit_id); if (!lchan) { + char addr_str[64]; + osmo_sockaddr_to_str_buf(addr_str, sizeof(addr_str), &rem_addr); LOGP(DOSMUX, LOGL_NOTICE, - "Cannot find lchan for circuit_id=%d\n", - osmuxh->circuit_id); + "Cannot find lchan for %s CID=%d\n", + addr_str, osmuxh->circuit_id); continue; } osmux_xfrm_output_sched(lchan->abis_ip.osmux.out, osmuxh);