diff options
author | Philippe Nunes <philippe.nunes@linux.intel.com> | 2012-05-30 15:53:10 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-05-30 09:06:13 -0500 |
commit | a571d2887b0f1d2e6b42c722c95807c9c1375977 (patch) | |
tree | 26b950fe239e3840c96848d46ae305681e99c5cd /src/call-settings.c | |
parent | 308e99dc196bd2bdc40389e00c8e77c26c545a17 (diff) | |
download | ofono-a571d2887b0f1d2e6b42c722c95807c9c1375977.tar.bz2 |
call-settings: Return specific errors for SS
Diffstat (limited to 'src/call-settings.c')
-rw-r--r-- | src/call-settings.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/call-settings.c b/src/call-settings.c index 6bc96580..4bfb561a 100644 --- a/src/call-settings.c +++ b/src/call-settings.c @@ -477,9 +477,10 @@ static void cw_ss_set_callback(const struct ofono_error *error, void *data) struct ofono_call_settings *cs = data; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { - DBG("setting CW via SS failed"); + DBG("setting CW via SS failed with error: %s", + telephony_error_to_str(error)); __ofono_dbus_pending_reply(&cs->pending, - __ofono_error_failed(cs->pending)); + __ofono_error_from_error(error, cs->pending)); return; } @@ -614,9 +615,10 @@ static void clip_cnap_colp_colr_ss_query_cb(const struct ofono_error *error, const char *value; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { - DBG("Error occurred during ss control query"); + DBG("SS control query failed with error: %s", + telephony_error_to_str(error)); __ofono_dbus_pending_reply(&cs->pending, - __ofono_error_failed(cs->pending)); + __ofono_error_from_error(error, cs->pending)); return; } @@ -772,9 +774,10 @@ static void clir_ss_set_callback(const struct ofono_error *error, void *data) struct ofono_call_settings *cs = data; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { - DBG("setting clir via SS failed"); + DBG("setting clir via SS failed with error: %s", + telephony_error_to_str(error)); __ofono_dbus_pending_reply(&cs->pending, - __ofono_error_failed(cs->pending)); + __ofono_error_from_error(error, cs->pending)); return; } |