From 328d2f78c1b934522811dea3f1d707fe39c039e3 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 6 Dec 2015 19:13:21 +0100 Subject: gtphub: log: add TEI reuse msg, fix another TEI msg. Sponsored-by: On-Waves ehi --- openbsc/src/gprs/gtphub.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openbsc') 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; -- cgit v1.2.3