aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-14 20:58:54 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2017-12-20 00:10:34 +0100
commit84c2f43d00af200eb2b1a58a566e3ed69e767904 (patch)
tree299a490791d811b039b85dc215ad875ceb948155 /src
parent63f68ccc4cdee6e8de2e4e63d456d4c340af5b51 (diff)
fix debug log: put 'deriving 2G from 3G' in proper place
Don't log "deriving 2G from 3G" when we're actually calculating separately; log it when we're actually deriving from 3G. Add log "calculating 2G separately" in the right place. The test output changes show that each test said "separate 2G" at the top while logging "deriving 2G from 3G" further down, which was obviously wrong. Change-Id: I6679d7ef8fdcae39a0c2aff7ac638e63dddb10dc
Diffstat (limited to 'src')
-rw-r--r--src/auc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/auc.c b/src/auc.c
index f55b377..79c3918 100644
--- a/src/auc.c
+++ b/src/auc.c
@@ -144,6 +144,7 @@ int auc_compute_vectors(struct osmo_auth_vector *vec, unsigned int num_vec,
if (!aud2g) {
/* use the 2G tokens from 3G keys */
+ DBGP("vector [%u]: deriving 2G from 3G\n", i);
DBGVB(kc);
DBGVB(sres);
DBGVV("0x%x", auth_types);
@@ -151,7 +152,7 @@ int auc_compute_vectors(struct osmo_auth_vector *vec, unsigned int num_vec,
}
/* calculate 2G separately */
- DBGP("vector [%u]: deriving 2G from 3G\n", i);
+ DBGP("vector [%u]: calculating 2G separately\n", i);
rc = osmo_auth_gen_vec(&vtmp, aud2g, rand);
if (rc < 0) {