diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-10-03 18:25:11 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-10-03 18:26:00 +0200 |
commit | b73c46ae97591b7758ed8e11ffda423cf9977d4a (patch) | |
tree | 1f7447a2108233a9273826c3398a1b9db6823729 | |
parent | 3fd60a5784eedb3dfb43ba456e0906623d718b47 (diff) |
osmux: Log remote address upon rx of osmux pkt
Related: SYS#5987
Change-Id: I391bc02a16eae1602680cb96128252f262852e14
-rw-r--r-- | src/common/osmux.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/osmux.c b/src/common/osmux.c index 02faab41..e178e0c0 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); |