diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-04-12 12:36:49 +0200 |
---|---|---|
committer | neels <nhofmeyr@sysmocom.de> | 2021-04-14 17:40:45 +0000 |
commit | 446e3c78699ddc4a04e055bf22392f34185a0b3a (patch) | |
tree | 87f250598d9c4d2b5a1ae48dec40f182f44f5f1d | |
parent | defb5b12008006ce1c5fcca3baf23e068a23a498 (diff) |
deprecation: use osmo_bts_features_*()
For "reported feature '%s'...", use the short feature name, which better
matches the message.
Change-Id: Ie09506fbf3a1f0e899f9f4c8070e3139fd1d5e9d
-rw-r--r-- | TODO-RELEASE | 1 | ||||
-rw-r--r-- | src/osmo-bsc/abis_nm.c | 2 | ||||
-rw-r--r-- | src/osmo-bsc/bsc_vty.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/TODO-RELEASE b/TODO-RELEASE index d0852fc9b..1a72401a7 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -7,3 +7,4 @@ # If any interfaces have been added since the last public release: c:r:a + 1. # If any interfaces have been removed or changed since the last public release: c:r:0. #library what description / commit summary line +libosmocore >1.5.1 needs osmo_bts_features_name(), osmo_bts_features_desc() diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c index 3eab14e74..ba1075a2f 100644 --- a/src/osmo-bsc/abis_nm.c +++ b/src/osmo-bsc/abis_nm.c @@ -607,7 +607,7 @@ static int parse_attr_resp_info_attr(struct gsm_bts *bts, const struct gsm_bts_t if (!Frep && Fexp) { LOGPMO(&bts->mo, DNM, LOGL_NOTICE, "Get Attributes Response: " "reported feature '%s' is not supported, while we thought it is.\n", - osmo_bts_feature_name(i)); + osmo_bts_features_name(i)); } } } diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c index 57c1f0a5d..1d29f1ba2 100644 --- a/src/osmo-bsc/bsc_vty.c +++ b/src/osmo-bsc/bsc_vty.c @@ -349,7 +349,7 @@ static void bts_dump_vty_features(struct vty *vty, struct gsm_bts *bts) for (i = 0; i < _NUM_BTS_FEAT; i++) { if (osmo_bts_has_feature(&bts->features, i)) { vty_out(vty, " %03u ", i); - vty_out(vty, "%-40s%s", osmo_bts_feature_name(i), VTY_NEWLINE); + vty_out(vty, "%-40s%s", osmo_bts_features_desc(i), VTY_NEWLINE); no_features = false; } } |