aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-08-18 16:23:28 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-08-27 17:40:56 +0200
commita441e9d60b33122caff72f469393b991e17d090f (patch)
tree5bb950bb1c4811ba7def68ce3b7ac155bac09105
parent537da6cb4875b9d3e551d6aab7691278a4b807d1 (diff)
gbproxy: log signal value as text
-rw-r--r--src/gprs/gb_proxy.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gprs/gb_proxy.c b/src/gprs/gb_proxy.c
index b98a9a5c..cd38d23b 100644
--- a/src/gprs/gb_proxy.c
+++ b/src/gprs/gb_proxy.c
@@ -1369,9 +1369,8 @@ int gbprox_signal(unsigned int subsys, unsigned int signal,
/* from BSS to SGSN */
peer = gbproxy_peer_by_nsei(cfg, nsvc->nsei);
if (!peer) {
- LOGP(DGPRS, LOGL_NOTICE, "signal %u for unknown peer "
- "NSEI=%u/NSVCI=%u\n", signal, nsvc->nsei,
- nsvc->nsvci);
+ LOGP(DGPRS, LOGL_NOTICE, "signal '%s' for unknown peer NSEI=%u/NSVCI=%u\n",
+ get_value_string(gprs_ns_signal_ns_names, signal), nsvc->nsei, nsvc->nsvci);
return 0;
}
switch (signal) {
@@ -1379,9 +1378,8 @@ int gbprox_signal(unsigned int subsys, unsigned int signal,
case S_NS_BLOCK:
if (!peer->blocked)
break;
- LOGP(DGPRS, LOGL_NOTICE, "Converting NS_RESET from "
- "NSEI=%u/NSVCI=%u into BSSGP_BVC_BLOCK to SGSN\n",
- nsvc->nsei, nsvc->nsvci);
+ LOGP(DGPRS, LOGL_NOTICE, "Converting '%s' from NSEI=%u/NSVCI=%u into BSSGP_BVC_BLOCK to SGSN\n",
+ get_value_string(gprs_ns_signal_ns_names, signal), nsvc->nsei, nsvc->nsvci);
bssgp_tx_simple_bvci(BSSGP_PDUT_BVC_BLOCK, nsvc->nsei,
peer->bvci, 0);
break;