path: root/src
diff options
authorDaniel Willmann <dwillmann@sysmocom.de>2020-12-21 10:40:27 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2020-12-22 12:32:16 +0100
commitea0b5d0df6b9cd890f916a13579322cb3597a8ef (patch)
tree202395edd848a0ebb096f23c2975203b02baf14d /src
parent3054213e87c87e6c3e6d760f3af0db79b43230fe (diff)
gbproxy: Fix confusing log message in gbprox_relay2nse
This function is now used to transmit messages in both directions, BSS->SGSN and SGSN->BSS. Print the actual direction in the logs Change-Id: I31682156dfe88f7ca121a711968e625caed8bd5e Related: OS#4472
Diffstat (limited to 'src')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c
index d84da1af..ca1c07c8 100644
--- a/src/gbproxy/gb_proxy.c
+++ b/src/gbproxy/gb_proxy.c
@@ -148,8 +148,8 @@ static int gbprox_relay2nse(struct msgb *old_msg, struct gbproxy_nse *nse,
uint32_t tlli;
int rc;
- DEBUGP(DGPRS, "NSE(%05u/SGSN)-BVC(%05u) proxying SGSN->BSS NSE(%05u/BSS)\n",
- msgb_nsei(msg), ns_bvci, nse->nsei);
+ DEBUGP(DGPRS, "NSE(%05u/%s)-BVC(%05u/??) proxying to NSE(%05u/%s)\n", msgb_nsei(msg),
+ !nse->sgsn_facing ? "SGSN" : "BSS", ns_bvci, nse->nsei, nse->sgsn_facing ? "SGSN" : "BSS");
nsp.bvci = ns_bvci;
nsp.nsei = nse->nsei;