diff options
author | Max <msuraev@sysmocom.de> | 2018-11-07 12:34:07 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-11-08 12:17:25 +0100 |
commit | 6fb500f789425c3ca3c9f5d43e74f9bdf90ac2b2 (patch) | |
tree | 4afcafaf29ceb9e71ca8d0f8e0918a82bedc16be /include | |
parent | 1bcdd730b69d30a82930e9a473e74425a2cc065f (diff) |
LCLS: expand logging to print the name of the mode in use
Change-Id: I56b57936ae82984e84896228da5a83115a78bbd7
Related: OS#3659
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/bsc/bsc_msc_data.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osmocom/bsc/bsc_msc_data.h b/include/osmocom/bsc/bsc_msc_data.h index 6ca03301b..32b161e2d 100644 --- a/include/osmocom/bsc/bsc_msc_data.h +++ b/include/osmocom/bsc/bsc_msc_data.h @@ -59,6 +59,13 @@ enum bsc_lcls_mode { /* we may later introduce BTS_LOOP here: direct RTP between BTSs */ }; +extern const struct value_string bsc_lcls_mode_names[]; + +static inline const char *bsc_lcls_mode_name(enum bsc_lcls_mode m) +{ + return get_value_string(bsc_lcls_mode_names, m); +} + /*! /brief Information on a remote MSC for libbsc. */ struct bsc_msc_data { |