diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-04-05 02:48:16 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-04-05 02:48:16 +0200 |
commit | c623c4e589d887f8ba779a03543213d55b6d82f4 (patch) | |
tree | 1127fbc729ee970d6c5436355650508a311bc67a /src/common/oml.c | |
parent | 2ed209c7580425804fb0fdaa88f28171993323b0 (diff) |
oml: temporary debug hack
Diffstat (limited to 'src/common/oml.c')
-rw-r--r-- | src/common/oml.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c index 37fb4bda..7fe922e8 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -396,8 +396,13 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg) /* Test for globally unsupported stuff here */ if (TLVP_PRESENT(&tp, NM_ATT_BCCH_ARFCN)) { - const uint16_t *value = (uint16_t *) TLVP_VAL(&tp, NM_ATT_BCCH_ARFCN); + const uint16_t *value = (const uint16_t *) TLVP_VAL(&tp, NM_ATT_BCCH_ARFCN); uint16_t arfcn = ntohs(*value); + + LOGP(DOML, LOGL_NOTICE, "MSG: %s\n", osmo_hexdump(msgb_l3(msg), msgb_l3len(msg))); + LOGP(DOML, LOGL_NOTICE, "L3=%p, VAL=%p, DIF=%lu\n", msgb_l3(msg), value, + (void *)value - (void *) msgb_l3(msg)); + if (arfcn > 1024) { LOGP(DOML, LOGL_NOTICE, "Given ARFCN %d is not supported.\n", arfcn); return oml_fom_ack_nack(msg, NM_NACK_FREQ_NOTAVAIL); |