diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-14 20:58:54 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-20 00:10:34 +0100 |
commit | 84c2f43d00af200eb2b1a58a566e3ed69e767904 (patch) | |
tree | 299a490791d811b039b85dc215ad875ceb948155 /src/auc.c | |
parent | 63f68ccc4cdee6e8de2e4e63d456d4c340af5b51 (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/auc.c')
-rw-r--r-- | src/auc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |