From c5849457e0320abf6919c2d214fec98d7f1121b6 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Tue, 15 Sep 2020 21:42:52 +0700 Subject: abis_nm: abis_nm_get_ts(): use LOGPFOH() instead of generic LOGP() Change-Id: I510506a5b2c9493d3473dd2b0fcb16a90aeb8c21 --- src/osmo-bsc/abis_nm.c | 6 ++---- 1 file 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]; -- cgit v1.2.3