diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-09-04 11:45:58 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-09-04 13:08:03 +0000 |
commit | c0b6dd000e57b3c71be446d3161804daf95ea320 (patch) | |
tree | af1ef7cf74c145cf2cfc128164adccdc5d8674f4 | |
parent | dd6849da1880c73d66d1c57167b21edc0a626d56 (diff) |
codec_pref: Log unsupported codec name used
Change-Id: If3ed8ba3bad7c927ed0efc908c005cd308e304e6
-rw-r--r-- | src/osmo-bsc/codec_pref.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo-bsc/codec_pref.c b/src/osmo-bsc/codec_pref.c index 5f5531244..212c2a6a9 100644 --- a/src/osmo-bsc/codec_pref.c +++ b/src/osmo-bsc/codec_pref.c @@ -20,6 +20,7 @@ */ #include <osmocom/core/msgb.h> +#include <osmocom/gsm/protocol/gsm_08_08.h> #include <osmocom/gsm/gsm0808_utils.h> #include <osmocom/bsc/bsc_msc_data.h> #include <osmocom/bsc/codec_pref.h> @@ -43,7 +44,9 @@ static enum gsm48_chan_mode gsm88_to_chan_mode(enum gsm0808_permitted_speech spe return GSM48_CMODE_SPEECH_AMR; break; default: - LOGP(DMSC, LOGL_FATAL, "Unsupported permitted speech selected, assuming AMR as channel mode...\n"); + LOGP(DMSC, LOGL_FATAL, "Unsupported permitted speech %s selected, " + "assuming AMR as channel mode...\n", + gsm0808_permitted_speech_name(speech)); return GSM48_CMODE_SPEECH_AMR; } } |