diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-06 19:13:21 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-07 13:37:09 +0100 |
commit | 328d2f78c1b934522811dea3f1d707fe39c039e3 (patch) | |
tree | 3c7ed1b2f634443a100057be300857538a6e2544 /openbsc/src/gprs/gtphub.c | |
parent | 23d09cc9045dc49cf51d76aabde077ca00cf0b00 (diff) |
gtphub: log: add TEI reuse msg, fix another TEI msg.
Sponsored-by: On-Waves ehi
Diffstat (limited to 'openbsc/src/gprs/gtphub.c')
-rw-r--r-- | openbsc/src/gprs/gtphub.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c index 4708f37e2..923c55373 100644 --- a/openbsc/src/gprs/gtphub.c +++ b/openbsc/src/gprs/gtphub.c @@ -1222,14 +1222,17 @@ static int gtphub_check_mapped_tei(struct gtphub_tunnel_endpoint *new_te, /* new_te->tei_repl is already taken. Try to find one out of the known * range. */ + LOG(LOGL_DEBUG, "TEI replacement %d already taken.\n", new_te->tei_repl); if ((*tei_max) < 0xffffffff) { (*tei_max)++; new_te->tei_repl = *tei_max; + LOG(LOGL_DEBUG, "Using TEI %d instead.\n", new_te->tei_repl); return 1; } else if ((*tei_min) > 1) { (*tei_min)--; new_te->tei_repl = *tei_min; + LOG(LOGL_DEBUG, "Using TEI %d instead.\n", new_te->tei_repl); return 1; } @@ -1541,8 +1544,8 @@ static int gtphub_handle_create_pdp_ctx(struct gtphub *hub, if (!tei_from_ie && !tun->endpoint[side_idx][plane_idx].tei_orig) { LOG(LOGL_ERROR, - "Create PDP Context message omits %s TEI, but the" - " no TEI has been announced for this tunnel: %s", + "Create PDP Context message omits %s TEI, but" + " no TEI has been announced for this tunnel: %s\n", gtphub_plane_idx_names[plane_idx], gtphub_tunnel_str(tun)); return -1; |