diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2020-12-28 18:07:27 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2020-12-28 19:27:08 +0100 |
commit | 182412d37146c6b0bf7f111d3b35397820996528 (patch) | |
tree | d4284aa4e4b7f1cb83913908c6e92edfe8722d7b /src/gbproxy/gb_proxy.c | |
parent | b0ff672359217f3658c8d1d68162aa2b88fd81c3 (diff) |
gbproxy: Add SGSN name
This is useful for logging and configuration to identify an SGSN by name
Change-Id: I2a3410dd9bebb242957e13a63ed70e447204203c
Related: SYS#5115, OS#4472
Diffstat (limited to 'src/gbproxy/gb_proxy.c')
-rw-r--r-- | src/gbproxy/gb_proxy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c index bce405596..4df94a75f 100644 --- a/src/gbproxy/gb_proxy.c +++ b/src/gbproxy/gb_proxy.c @@ -298,11 +298,13 @@ static struct gbproxy_bvc *gbproxy_select_sgsn_bvc(struct gbproxy_config *cfg, s if (sgsn->nse != sgsn_bvc->nse) continue; + LOGPBVC(sgsn_bvc, LOGL_INFO, "using SGSN %s\n", sgsn->name); + return sgsn_bvc; } /* This shouldn't happen */ - LOGPCELL(cell, LOGL_ERROR, "Could not find matching BVC for SGSN, dropping message!\n"); + LOGPCELL(cell, LOGL_ERROR, "Could not find matching BVC for SGSN %s, dropping message!\n", sgsn->name); return NULL; } |