diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-10-27 15:12:25 +0100 |
---|---|---|
committer | lynxis lazus <lynxis@fe80.eu> | 2020-10-27 14:49:03 +0000 |
commit | b3b837c5e81dc5b21f8994b3d16adf3448b48035 (patch) | |
tree | 290a1bb4c78ae331fb743eb59c7c5950812cb4f9 /src/gb/gprs_ns2.c | |
parent | 2498f1db9df89a5496944a6b84d51f11ae185504 (diff) |
gprs_ns2: convert gprs_ns2_cause_str into an static inline
Be consistent with other implementation of get_value_string() in
libosomocore.
Change-Id: Ic79757df8683e0461c04f7ef9279e4fe645eb821
Diffstat (limited to 'src/gb/gprs_ns2.c')
-rw-r--r-- | src/gb/gprs_ns2.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c index 6401d771..ffa31353 100644 --- a/src/gb/gprs_ns2.c +++ b/src/gb/gprs_ns2.c @@ -138,7 +138,7 @@ static const struct tlv_definition ns_att_tlvdef2 = { /* Section 10.3.2, Table 13 */ -static const struct value_string ns2_cause_str[] = { +const struct value_string gprs_ns2_cause_strs[] = { { NS_CAUSE_TRANSIT_FAIL, "Transit network failure" }, { NS_CAUSE_OM_INTERVENTION, "O&M intervention" }, { NS_CAUSE_EQUIP_FAIL, "Equipment failure" }, @@ -160,13 +160,6 @@ static const struct value_string ns2_cause_str[] = { { 0, NULL } }; -/*! Obtain a human-readable string for NS cause value */ -const char *gprs_ns2_cause_str(int cause) -{ - enum ns_cause _cause = cause; - return get_value_string(ns2_cause_str, _cause); -} - static const struct rate_ctr_desc nsvc_ctr_description[] = { { "packets:in", "Packets at NS Level ( In)" }, { "packets:out","Packets at NS Level (Out)" }, |