From: Alfonso Sanchez-Beato Date: Mon, 7 Sep 2015 09:58:17 +0000 (+0200) Subject: sms: Add trace when datagram is not delivered X-Git-Tag: upstream/1.17~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51fc828c5e013c63bf7fe7a46057abb454b40d35;p=platform%2Fupstream%2Fofono.git sms: Add trace when datagram is not delivered --- diff --git a/src/sms.c b/src/sms.c index 02700297..72972b28 100644 --- a/src/sms.c +++ b/src/sms.c @@ -1184,6 +1184,7 @@ static void dispatch_app_datagram(struct ofono_sms *sms, ofono_sms_datagram_notify_cb_t notify; struct sms_handler *h; GSList *l; + gboolean dispatched = FALSE; ts = sms_scts_to_time(scts, &remote); localtime_r(&ts, &local); @@ -1195,9 +1196,15 @@ static void dispatch_app_datagram(struct ofono_sms *sms, if (!port_equal(dst, h->dst) || !port_equal(src, h->src)) continue; + dispatched = TRUE; + notify(sender, &remote, &local, dst, src, buf, len, h->item.notify_data); } + + if (!dispatched) + ofono_info("Datagram with ports [%d,%d] not delivered", + dst, src); } static void dispatch_text_message(struct ofono_sms *sms,