diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-02 14:31:08 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-03 11:46:29 +0100 |
commit | 936b890f71f6603bdd95fc6283030395743dfae5 (patch) | |
tree | 1e956170ad1ba53fa7a48576c6c474f2b7591f24 | |
parent | be4bebaad05dd360200c38b7da02aa8ca66850f2 (diff) |
gtphub: Add a debug log
Sponsored-by: On-Waves ehi
-rw-r--r-- | openbsc/src/gprs/gtphub.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c index 78e8c90c6..36f0836f3 100644 --- a/openbsc/src/gprs/gtphub.c +++ b/openbsc/src/gprs/gtphub.c @@ -1798,6 +1798,9 @@ static void gtphub_restarted(struct gtphub *hub, struct gtp_packet_desc *p, struct gtphub_peer_port *pp) { + LOG(LOGL_DEBUG, "Peer has restarted: %s\n", + gtphub_port_str(pp)); + struct gtphub_tunnel *tun; llist_for_each_entry(tun, &hub->tunnels, entry) { int side_idx; @@ -1805,6 +1808,9 @@ static void gtphub_restarted(struct gtphub *hub, if (pp != tun->endpoint[side_idx][GTPH_PLANE_CTRL].peer) continue; + LOG(LOGL_DEBUG, "Deleting tunnel due to peer restart: %s\n", + gtphub_tunnel_str(tun)); + /* Send a Delete PDP Context Request to the * peer on the other side, remember the pending * delete and wait for the response to delete |