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
This commit is contained in:
Daniel Willmann 2020-12-21 10:40:27 +01:00
parent 3054213e87
commit ea0b5d0df6
1 changed files with 2 additions and 2 deletions

View File

@ -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;