summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-12 12:01:33 +0000
committerHarald Welte <laforge@gnumonks.org>2010-05-12 18:28:00 +0200
commit6ecaa3da2b2ff5dda53840476a792e12ce99d372 (patch)
tree500f86b80b8048f41be8d15cb481114038b88ab8
parent38407efdf88992e11c06659eb3f15d3142e1726f (diff)
NS: More INFO messages about what we actually transmit
-rw-r--r--openbsc/src/gprs/gprs_ns.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_ns.c b/openbsc/src/gprs/gprs_ns.c
index a166956b..e93bd43f 100644
--- a/openbsc/src/gprs/gprs_ns.c
+++ b/openbsc/src/gprs/gprs_ns.c
@@ -207,6 +207,9 @@ int gprs_ns_tx_reset(struct gprs_nsvc *nsvc, uint8_t cause)
if (!msg)
return -ENOMEM;
+ LOGP(DNS, LOGL_INFO, "NSEI=%u Tx NS RESET (NSVCI=%u, cause=%s)\n",
+ nsvc->nsei, nsvc->nsvci, gprs_ns_cause_str(cause));
+
nsh = (struct gprs_ns_hdr *) msgb_put(msg, sizeof(*nsh));
nsh->pdu_type = NS_PDUT_RESET;
@@ -230,6 +233,9 @@ int gprs_ns_tx_status(struct gprs_nsvc *nsvc, uint8_t cause,
if (!msg)
return -ENOMEM;
+ LOGP(DNS, LOGL_INFO, "NSEI=%u Tx NS STATUS (NSVCI=%u, cause=%s)\n",
+ nsvc->nsei, nsvc->nsvci, gprs_ns_cause_str(cause));
+
nsh = (struct gprs_ns_hdr *) msgb_put(msg, sizeof(*nsh));
nsh->pdu_type = NS_PDUT_STATUS;
@@ -270,6 +276,9 @@ int gprs_ns_tx_block(struct gprs_nsvc *nsvc, uint8_t cause)
if (!msg)
return -ENOMEM;
+ LOGP(DNS, LOGL_INFO, "NSEI=%u Tx NS BLOCK (NSVCI=%u, cause=%s)\n",
+ nsvc->nsei, nsvc->nsvci, gprs_ns_cause_str(cause));
+
/* be conservative and mark it as blocked even now! */
nsvc->state |= NSE_S_BLOCKED;
@@ -284,6 +293,10 @@ int gprs_ns_tx_block(struct gprs_nsvc *nsvc, uint8_t cause)
int gprs_ns_tx_unblock(struct gprs_nsvc *nsvc)
{
+
+ LOGP(DNS, LOGL_INFO, "NSEI=%u Tx NS UNBLOCK (NSVCI=%u)\n",
+ nsvc->nsei, nsvc->nsvci);
+
return gprs_ns_tx_simple(nsvc, NS_PDUT_UNBLOCK);
}