From c0b6dd000e57b3c71be446d3161804daf95ea320 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 4 Sep 2018 11:45:58 +0200 Subject: codec_pref: Log unsupported codec name used Change-Id: If3ed8ba3bad7c927ed0efc908c005cd308e304e6 --- src/osmo-bsc/codec_pref.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +#include #include #include #include @@ -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; } } -- cgit v1.2.3