aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-02-04 12:30:44 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-05 09:23:20 +0000
commit57658ecdc74b7072c05cca6c2bc931f23b1460f6 (patch)
treea28ac7bfd80ffa5e5078fbce496e54e2cd09455c /src/osmo-bsc
parent761fa134a891c8a5e286fdf7c436a25c36c43831 (diff)
gsm_data: Add gsm_bts_name() just like we have gsm_{trx,ts,lchan}_name()
Diffstat (limited to 'src/osmo-bsc')
-rw-r--r--src/osmo-bsc/gsm_data.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/osmo-bsc/gsm_data.c b/src/osmo-bsc/gsm_data.c
index 7eee918b9..5d667bbf0 100644
--- a/src/osmo-bsc/gsm_data.c
+++ b/src/osmo-bsc/gsm_data.c
@@ -996,6 +996,16 @@ struct gsm_bts_trx *gsm_bts_trx_num(const struct gsm_bts *bts, int num)
static char ts2str[255];
+char *gsm_bts_name(const struct gsm_bts *bts)
+{
+ if (!bts)
+ snprintf(ts2str, sizeof(ts2str), "(bts=NULL)");
+ else
+ snprintf(ts2str, sizeof(ts2str), "(bts=%d)", bts->nr);
+
+ return ts2str;
+}
+
char *gsm_trx_name(const struct gsm_bts_trx *trx)
{
if (!trx)