Skip to contentSkip to conversation

rilmodem: fix set_call_barring reply trace (mako)

PATCH Applied Tony Espy 2 participants 2 messages Nov 25, 2015 – Nov 29, 2015

lore
Share & tools
lore

Tony Espy

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/rilmodem/call-barring.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/rilmodem/call-barring.c +2 -2
index 70b0b56..719bbe1 100644
@@ -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;
 
Signature · 1 line
2.1.4
#1 lore raw

Hi Tony,

Quoted 6 lines · Tony Espy

This change restores the trace output for a reply to a REQUEST_SET_FACILITY_LOCK used by the set function.

---
  drivers/rilmodem/call-barring.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Regards,
-Denis