diff options
author | Michael McTernan <mike.mcternan@wavemobile.com> | 2015-07-03 10:33:50 +0100 |
---|---|---|
committer | Michael McTernan <mike.mcternan@wavemobile.com> | 2015-07-03 10:33:50 +0100 |
commit | dc18606cae2c1a273426a89c23b8e849c4ca04e7 (patch) | |
tree | 6306c992d2cbfb42b07f6c9412dc2aade850ff5f /src/gb/gprs_bssgp.c | |
parent | 0c50b17a2636a4a9d471ebbaf2cdb9396390e4cd (diff) |
Add mnc_t for 3 digit mncs.mmcternan/bb_maint
Signed-off-by: Michael McTernan <mike.mcternan@wavemobile.com>
Diffstat (limited to 'src/gb/gprs_bssgp.c')
-rw-r--r-- | src/gb/gprs_bssgp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gb/gprs_bssgp.c b/src/gb/gprs_bssgp.c index 5ef18872..06d683a5 100644 --- a/src/gb/gprs_bssgp.c +++ b/src/gb/gprs_bssgp.c @@ -267,9 +267,10 @@ static int bssgp_rx_bvc_reset(struct msgb *msg, struct tlv_parsed *tp, /* actually extract RAC / CID */ bctx->cell_id = bssgp_parse_cell_id(&bctx->ra_id, TLVP_VAL(tp, BSSGP_IE_CELL_ID)); - LOGP(DBSSGP, LOGL_NOTICE, "Cell %u-%u-%u-%u CI %u on BVCI %u\n", - bctx->ra_id.mcc, bctx->ra_id.mnc, bctx->ra_id.lac, - bctx->ra_id.rac, bctx->cell_id, bvci); + LOGP(DBSSGP, LOGL_NOTICE, "Cell %u-%0*u-%u-%u CI %u on BVCI %u\n", + bctx->ra_id.mcc, + bctx->ra_id.mnc.two_digits ? 2 : 3, bctx->ra_id.mnc.network_code, + bctx->ra_id.lac, bctx->ra_id.rac, bctx->cell_id, bvci); } /* Send NM_BVC_RESET.ind to NM */ @@ -587,7 +588,7 @@ static int fc_queue_timer_cfg(struct bssgp_flow_control *fc) if (llist_empty(&fc->queue)) return 0; - fcqe = llist_entry(&fc->queue.next, struct bssgp_fc_queue_element, + fcqe = llist_entry(fc->queue.next, struct bssgp_fc_queue_element, list); if (fc->bucket_leak_rate != 0) { |