diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-27 20:19:48 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-06 14:52:51 +0100 |
commit | 583e9aef33e93c7a6146116b814fdd1e8b367466 (patch) | |
tree | 1a4421abc9c3521579d02d0a43ba099c8a929cab | |
parent | dc53af6721bc4c398bf5c8cb4a1178b4deb12f57 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/sms_queue.c b/openbsc/src/sms_queue.c index fe6eb3128..7d5bb3889 100644 --- a/openbsc/src/sms_queue.c +++ b/openbsc/src/sms_queue.c @@ -442,8 +442,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; } |