diff options
author | Alfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com> | 2015-09-07 11:58:17 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2015-09-08 09:14:03 -0500 |
commit | 51fc828c5e013c63bf7fe7a46057abb454b40d35 (patch) | |
tree | 9db75ff2ed9b3d127ab39fbb10f509abfe7918c8 /src | |
parent | ac14de37ca096c77ed190b10479a786c16f80957 (diff) | |
download | ofono-51fc828c5e013c63bf7fe7a46057abb454b40d35.tar.bz2 |
sms: Add trace when datagram is not delivered
Diffstat (limited to 'src')
-rw-r--r-- | src/sms.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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, |