debug log for sms: fix/add
One logged the wrong function name. Add others.
Change-Id: Ied5d8e84d5d192c826bc131be8907eaa55190479
diff --git a/openbsc/src/libmsc/sms_queue.c b/openbsc/src/libmsc/sms_queue.c
index 5dbe81f..ebc53c2 100644
--- a/openbsc/src/libmsc/sms_queue.c
+++ b/openbsc/src/libmsc/sms_queue.c
@@ -225,10 +225,14 @@
sms = take_next_sms(smsq);
- if (!sms)
+ if (!sms) {
+ LOGP(DLSMS, LOGL_DEBUG, "Sending SMS done (%d attempted)\n",
+ attempted);
break;
+ }
rounds += 1;
+ LOGP(DLSMS, LOGL_DEBUG, "Sending SMS round %d\n", rounds);
/*
* This code needs to detect a loop. It assumes that no SMS
@@ -243,6 +247,8 @@
first_sub = sms->receiver->id;
initialized = 1;
} else if (first_sub == sms->receiver->id) {
+ LOGP(DLSMS, LOGL_DEBUG, "Sending SMS done (loop) (%d attempted)\n",
+ attempted);
sms_free(sms);
break;
}
@@ -324,6 +330,7 @@
*/
int sms_queue_trigger(struct gsm_sms_queue *smsq)
{
+ LOGP(DLSMS, LOGL_DEBUG, "Triggering SMS queue\n");
if (osmo_timer_pending(&smsq->push_queue))
return 0;