diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-04-04 20:55:58 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-04-04 21:18:06 +0700 |
commit | ac88f5a5c9922328c685b6879c02c4834039be85 (patch) | |
tree | 5be2e86278daaad03f9fae7c9a831d5c8642cdc3 /src | |
parent | a8a1b148dc10254657afee3e31a41f56b616b828 (diff) |
abis_nm.c: fix broken logging in abis_nm_rx_ipacc()
Change-Id: I65ff2968523a90607bafd44e6f4f3d3e29ff73ef
Diffstat (limited to 'src')
-rw-r--r-- | src/osmo-bsc/abis_nm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c index 5be207fa8..240517bcb 100644 --- a/src/osmo-bsc/abis_nm.c +++ b/src/osmo-bsc/abis_nm.c @@ -2709,11 +2709,12 @@ static int abis_nm_rx_ipacc(struct msgb *msg) abis_nm_tlv_parse(&tp, sign_link->trx->bts, foh->data, oh->length-sizeof(*foh)); - DEBUGPFOH(DNM, foh, "IPACCESS(0x%02x): ", foh->msg_type); + DEBUGPFOH(DNM, foh, "Rx IPACCESS(0x%02x): %s\n", foh->msg_type, + osmo_hexdump(foh->data, oh->length - sizeof(*foh))); switch (foh->msg_type) { case NM_MT_IPACC_RSL_CONNECT_ACK: - DEBUGPC(DNM, "RSL CONNECT ACK "); + DEBUGPFOH(DNM, foh, "RSL CONNECT ACK "); if (TLVP_PRESENT(&tp, NM_ATT_IPACC_DST_IP)) { memcpy(&addr, TLVP_VAL(&tp, NM_ATT_IPACC_DST_IP), sizeof(addr)); @@ -2773,7 +2774,7 @@ static int abis_nm_rx_ipacc(struct msgb *msg) LOGPC(DNM, LOGL_ERROR, "\n"); break; default: - DEBUGPC(DNM, "unknown\n"); + LOGPFOH(DNM, LOGL_ERROR, foh, "Unknown message\n"); break; } |