aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/abis_nm.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-09-15 21:42:52 +0700
committerlaforge <laforge@osmocom.org>2020-09-15 20:42:17 +0000
commitc5849457e0320abf6919c2d214fec98d7f1121b6 (patch)
tree8233ed6f4c54ef659d0883114390d20182d3ece5 /src/osmo-bsc/abis_nm.c
parent86f5cdd26a873aa797af3da9f296739a3217a089 (diff)
abis_nm: abis_nm_get_ts(): use LOGPFOH() instead of generic LOGP()
Diffstat (limited to 'src/osmo-bsc/abis_nm.c')
-rw-r--r--src/osmo-bsc/abis_nm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c
index 830ed3864..fd53f345f 100644
--- a/src/osmo-bsc/abis_nm.c
+++ b/src/osmo-bsc/abis_nm.c
@@ -800,13 +800,11 @@ struct gsm_bts_trx_ts *abis_nm_get_ts(const struct msgb *oml_msg)
struct gsm_bts_trx *trx = gsm_bts_trx_num(sign_link->trx->bts, foh->obj_inst.trx_nr);
uint8_t ts_nr = foh->obj_inst.ts_nr;
if (!trx) {
- LOGP(DNM, LOGL_ERROR, "%s Channel OPSTART ACK for sign_link without trx\n",
- abis_nm_dump_foh(foh));
+ LOGPFOH(DNM, LOGL_ERROR, foh, "Channel OPSTART ACK for sign_link without trx\n");
return NULL;
}
if (ts_nr >= ARRAY_SIZE(trx->ts)) {
- LOGP(DNM, LOGL_ERROR, "bts%u-trx%u %s Channel OPSTART ACK for non-existent TS\n",
- trx->bts->nr, trx->nr, abis_nm_dump_foh(foh));
+ LOGPFOH(DNM, LOGL_ERROR, foh, "Channel OPSTART ACK for non-existent TS\n");
return NULL;
}
return &trx->ts[ts_nr];