pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/29572 )
Change subject: osmux: Log remote address upon rx of osmux pkt ......................................................................
osmux: Log remote address upon rx of osmux pkt
Related: SYS#5987 Change-Id: I391bc02a16eae1602680cb96128252f262852e14 --- M src/common/osmux.c 1 file changed, 4 insertions(+), 2 deletions(-)
Approvals: laforge: Looks good to me, but someone else must approve osmith: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified
diff --git a/src/common/osmux.c b/src/common/osmux.c index 02faab4..e178e0c 100644 --- a/src/common/osmux.c +++ b/src/common/osmux.c @@ -263,9 +263,11 @@ 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);