aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2024-02-05 06:25:55 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2024-02-09 05:17:39 +0100
commit2eb89d9fdb8461a2f848b0b7aa3ff03aef5d44ee (patch)
treef437dd4345d01a623714c927d3da658e3b8f4d4b
parent29f865d86677a45820faba42d8e2cf83cfd3c525 (diff)
tmp dbg validate_perm_speech
-rw-r--r--tests/msc_vlr/msc_vlr_test_call.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/msc_vlr/msc_vlr_test_call.c b/tests/msc_vlr/msc_vlr_test_call.c
index 71171489a..01254a1a0 100644
--- a/tests/msc_vlr/msc_vlr_test_call.c
+++ b/tests/msc_vlr/msc_vlr_test_call.c
@@ -1394,7 +1394,16 @@ static bool validate_perm_speech(const char *func, const char *desc,
const enum gsm0808_permitted_speech perm_speech[])
{
const enum gsm0808_permitted_speech *pos;
- const uint8_t *pos2 = ct->perm_spch;
+ const uint8_t *pos2;
+
+ btw("validate_perm_speech(): expect:");
+ for (pos = perm_speech; *pos != LIST_END; pos++)
+ btw(" %s", gsm0808_permitted_speech_name(*pos));
+ btw("got:");
+ for (pos2 = ct->perm_spch; (pos2 - ct->perm_spch) < ct->perm_spch_len; pos2++)
+ btw(" %s", gsm0808_permitted_speech_name(*pos2));
+
+ pos2 = ct->perm_spch;
for (pos = perm_speech; *pos != LIST_END; pos++, pos2++) {
if (pos2 - ct->perm_spch >= ct->perm_spch_len) {
BTW("%s: %s: ERROR: mismatch: expected %s to be listed, but not found", func, desc,