From 2eb89d9fdb8461a2f848b0b7aa3ff03aef5d44ee Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 5 Feb 2024 06:25:55 +0100 Subject: [PATCH] tmp dbg validate_perm_speech Change-Id: Ic853e43a4d2f1db32f20dc2ac7dcfd5b5c20aea8 --- tests/msc_vlr/msc_vlr_test_call.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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,