vty: Print NCC/BCC and not just integer value of BSIC

This commit is contained in:
Harald Welte 2015-11-20 10:50:24 +01:00
parent a2bbc5ec0e
commit 557c84e9f7
1 changed files with 2 additions and 1 deletions

View File

@ -253,10 +253,11 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts)
struct pchan_load pl;
vty_out(vty, "BTS %u is of %s type in band %s, has CI %u LAC %u, "
"BSIC %u and %u TRX%s",
"BSIC %u (NCC=%u, BCC=%u) and %u TRX%s",
bts->nr, btstype2str(bts->type), gsm_band_name(bts->band),
bts->cell_identity,
bts->location_area_code, bts->bsic,
bts->bsic >> 3, bts->bsic & 7,
bts->num_trx, VTY_NEWLINE);
vty_out(vty, "Description: %s%s",
bts->description ? bts->description : "(null)", VTY_NEWLINE);