aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-09-04 11:45:58 +0200
committerHarald Welte <laforge@gnumonks.org>2018-09-04 13:08:03 +0000
commitc0b6dd000e57b3c71be446d3161804daf95ea320 (patch)
treeaf1ef7cf74c145cf2cfc128164adccdc5d8674f4
parentdd6849da1880c73d66d1c57167b21edc0a626d56 (diff)
codec_pref: Log unsupported codec name used
-rw-r--r--src/osmo-bsc/codec_pref.c5
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;
}
}