summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-16 04:58:58 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-16 05:51:58 +0100
commitedebc22989228f6f33e62b04ac37c17eeed5a650 (patch)
treee367c8b475555be6615d5efc69ebc1f1e3b6cf03 /src
parentcab2fcd5b5a7276fc9a89e449e9d3ede11790711 (diff)
debug log: output ind slot, previous sqn, and sqn db update
Diffstat (limited to 'src')
-rw-r--r--src/auc.c2
-rw-r--r--src/db_auc.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/auc.c b/src/auc.c
index d3b3d36..f55b377 100644
--- a/src/auc.c
+++ b/src/auc.c
@@ -97,6 +97,8 @@ int auc_compute_vectors(struct osmo_auth_vector *vec, unsigned int num_vec,
DBGP("3G: %s = %s\n",
aud3g->u.umts.opc_is_op? "OP" : "opc",
hexb(aud3g->u.umts.opc));
+ DBGP("3G: for sqn ind %u, previous sqn was %" PRIu64 "\n",
+ aud3g->u.umts.ind, aud3g->u.umts.sqn);
}
if (aud2g)
DBGP("2G: ki = %s\n", hexb(aud2g->u.gsm.ki));
diff --git a/src/db_auc.c b/src/db_auc.c
index 8a369b5..f532b83 100644
--- a/src/db_auc.c
+++ b/src/db_auc.c
@@ -223,7 +223,8 @@ int db_get_auc(struct db_context *dbc, const char *imsi,
/* Update SQN in database, as needed */
if (aud3g.algo) {
- LOGAUC(imsi, LOGL_DEBUG, "Updating SQN in DB\n");
+ LOGAUC(imsi, LOGL_DEBUG, "Updating SQN=%" PRIu64 " in DB\n",
+ aud3g.u.umts.sqn);
rc = db_update_sqn(dbc, subscr_id, aud3g.u.umts.sqn);
/* don't tell caller we generated any triplets in case of
* update error */