aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-27 20:19:48 +0100
committerHarald Welte <laforge@gnumonks.org>2010-12-28 00:38:00 +0100
commitdbe012a1ba3fdd304297c734c3f66fb67b6f2908 (patch)
treead635240dab26746a058290656d2e806f50fab6c
parentc0aefc45ac0f79e262a550bc16843857041c7a17 (diff)
sms: Show the amount of failures and the SMS we want to send.
Improve the debugging possibilities and print the failed attempts and the sms that was attempted to be delivered. this should help with debugging the code.
-rw-r--r--openbsc/src/sms_queue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/sms_queue.c b/openbsc/src/sms_queue.c
index 395da1f18..17a0b9569 100644
--- a/openbsc/src/sms_queue.c
+++ b/openbsc/src/sms_queue.c
@@ -443,8 +443,9 @@ int sms_queue_stats(struct gsm_sms_queue *smsq, struct vty *vty)
smsq->max_pending, smsq->pending, VTY_NEWLINE);
llist_for_each_entry(pending, &smsq->pending_sms, entry)
- vty_out(vty, " SMS Pending for Subscriber: %llu%s",
- pending->subscr->id, VTY_NEWLINE);
+ vty_out(vty, " SMS Pending for Subscriber: %llu SMS: %llu Failed: %d%s.",
+ pending->subscr->id, pending->sms_id,
+ pending->failed_attempts, VTY_NEWLINE);
return 0;
}