From 4fa4f491a475d4b9bf5773390434786dfd1230bc Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 15 Jul 2009 11:29:38 -0500 Subject: [PATCH] Add some more debugging to SMS driver --- drivers/atmodem/sms.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c index 3787fae..0878a1e 100644 --- a/drivers/atmodem/sms.c +++ b/drivers/atmodem/sms.c @@ -606,6 +606,8 @@ static void at_cnmi_query_cb(gboolean ok, GAtResult *result, gpointer user_data) gboolean supported = FALSE; char buf[128]; + dump_response("at_cnmi_query_cb", ok, result); + if (!ok) goto out; @@ -654,6 +656,8 @@ static void at_cpms_set_cb(gboolean ok, GAtResult *result, gpointer user_data) struct ofono_modem *modem = user_data; struct at_data *at = ofono_modem_userdata(modem); + dump_response("at_cpms_set_cb", ok, result); + if (ok) return at_query_cnmi(modem); @@ -686,6 +690,8 @@ static void at_cmgf_set_cb(gboolean ok, GAtResult *result, gpointer user_data) struct ofono_modem *modem = user_data; struct at_data *at = ofono_modem_userdata(modem); + dump_response("at_cmgf_set_cb", ok, result); + if (ok) { at->sms->retries = 0; set_cpms(modem); @@ -719,6 +725,8 @@ static void at_cpms_query_cb(gboolean ok, GAtResult *result, struct at_data *at = ofono_modem_userdata(modem); gboolean supported = FALSE; + dump_response("cpms_query_cb", ok, result); + if (ok) { int mem = 0; GAtResultIter iter; @@ -773,6 +781,8 @@ static void at_cmgf_query_cb(gboolean ok, GAtResult *result, struct at_data *at = ofono_modem_userdata(modem); gboolean supported = FALSE; + dump_response("cmgf_query_cb", ok, result); + if (ok) { GAtResultIter iter; int mode; @@ -806,6 +816,8 @@ static void at_csms_status_cb(gboolean ok, GAtResult *result, struct at_data *at = ofono_modem_userdata(modem); gboolean supported = FALSE; + dump_response("csms_status_cb", ok, result); + if (ok) { GAtResultIter iter; int service; @@ -862,6 +874,8 @@ static void at_csms_query_cb(gboolean ok, GAtResult *result, int status; char buf[128]; + dump_response("csms_query_cb", ok, result); + if (!ok) return at_sms_not_supported(modem); -- 2.7.4