aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msc_vlr/msc_vlr_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/msc_vlr/msc_vlr_tests.c')
-rw-r--r--tests/msc_vlr/msc_vlr_tests.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/msc_vlr/msc_vlr_tests.c b/tests/msc_vlr/msc_vlr_tests.c
index f8551dde7..15720f454 100644
--- a/tests/msc_vlr/msc_vlr_tests.c
+++ b/tests/msc_vlr/msc_vlr_tests.c
@@ -779,8 +779,25 @@ static int fake_vlr_tx_ciph_mode_cmd(void *msc_conn_ref, bool umts_aka, bool ret
} else
#endif
rc = msc_vlr_set_ciph_mode(msc_conn_ref, umts_aka, retrieve_imeisv);
- if (rc)
- btw("ERROR sending ciphering mode command: rc=%d", rc);
+ if (rc) {
+ const char *err_str;
+ switch (rc) {
+ case -EINVAL:
+ err_str = "rc == -EINVAL";
+ break;
+ case -ENOTSUP:
+ err_str = "rc == -ENOTSUP";
+ break;
+ default:
+ if (rc < 0)
+ err_str = "rc < 0";
+ else
+ err_str = "rc > 0";
+ break;
+ }
+ btw("ERROR sending ciphering mode command: %s", err_str);
+ }
+
return rc;
}