summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTony Espy <espy@canonical.com>2015-11-24 19:18:42 -0500
committerDenis Kenzior <denkenz@gmail.com>2015-11-29 15:51:12 -0600
commit30e6833f0e260e65b0c37deb45384a908c2b9cfd (patch)
tree23f46dcbdab563698139041dd45ec44c174ed8d7 /drivers
parentc4c82c5da975cd3f5f670352b02cbfd84c5b827a (diff)
downloadofono-30e6833f0e260e65b0c37deb45384a908c2b9cfd.tar.bz2
rilmodem: fix set_call_barring reply trace (mako)
This change restores the trace output for a reply to a REQUEST_SET_FACILITY_LOCK used by the set function.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rilmodem/call-barring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rilmodem/call-barring.c b/drivers/rilmodem/call-barring.c
index 70b0b561..719bbe1d 100644
--- a/drivers/rilmodem/call-barring.c
+++ b/drivers/rilmodem/call-barring.c
@@ -119,7 +119,7 @@ static void ril_call_barring_set_cb(struct ril_msg *message, gpointer user_data)
ofono_call_barring_set_cb_t cb = cbd->cb;
struct barring_data *bd = cbd->user;
struct parcel rilp;
- int retries;
+ int retries = -1;
if (message->error != RIL_E_SUCCESS)
goto error;
@@ -138,10 +138,10 @@ static void ril_call_barring_set_cb(struct ril_msg *message, gpointer user_data)
if (rilp.malformed)
goto error;
+done:
g_ril_append_print_buf(bd->ril, "{%d}", retries);
g_ril_print_response(bd->ril, message);
-done:
CALLBACK_WITH_SUCCESS(cb, cbd->data);
return;