summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-08-20 21:55:22 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-08-20 21:55:22 +0200
commit6bf2a743f4a45997db035e03e442b1d68c0b03fc (patch)
treeac49a095ab0a659ffd4ec8f3b34653e22b49eb83 /src
parent773b3a80884f9bebc785936ddfce2b39d466958c (diff)
sms: Add a few more debug statements
Diffstat (limited to 'src')
-rw-r--r--src/sms.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sms.c b/src/sms.c
index bfc864b9..72985637 100644
--- a/src/sms.c
+++ b/src/sms.c
@@ -749,6 +749,8 @@ static void sms_dispatch(struct ofono_sms *sms, GSList *sms_list)
int srcport = -1;
int dstport = -1;
+ DBG("");
+
if (sms_list == NULL)
return;
@@ -854,6 +856,8 @@ static void handle_deliver(struct ofono_sms *sms, const struct sms *incoming)
guint8 max;
guint8 seq;
+ DBG("");
+
if (sms_extract_concatenation(incoming, &ref, &max, &seq)) {
GSList *sms_list;
@@ -887,6 +891,8 @@ static void handle_sms_status_report(struct ofono_sms *sms,
gboolean delivered;
unsigned int msg_id;
+ DBG("");
+
if (status_report_assembly_report(sms->sr_assembly, incoming, &msg_id,
&delivered) == FALSE)
return;
@@ -901,6 +907,8 @@ static inline gboolean handle_mwi(struct ofono_sms *sms, struct sms *s)
{
gboolean discard;
+ DBG("");
+
if (sms->mw == NULL)
return FALSE;
@@ -915,6 +923,8 @@ void ofono_sms_deliver_notify(struct ofono_sms *sms, unsigned char *pdu,
struct sms s;
enum sms_class cls;
+ DBG("len %d tpdu len %d", len, tpdu_len);
+
if (!sms_decode(pdu, len, FALSE, tpdu_len, &s)) {
ofono_error("Unable to decode PDU");
return;
@@ -1031,6 +1041,8 @@ void ofono_sms_status_notify(struct ofono_sms *sms, unsigned char *pdu,
struct sms s;
enum sms_class cls;
+ DBG("len %d tpdu len %d", len, tpdu_len);
+
if (!sms_decode(pdu, len, FALSE, tpdu_len, &s)) {
ofono_error("Unable to decode PDU");
return;