CALLBACK_WITH_FAILURE(cb, data);
}
-static int at_call_volume_probe(struct ofono_call_volume *cv, unsigned int vendor,
- void *data)
+static int at_call_volume_probe(struct ofono_call_volume *cv,
+ unsigned int vendor, void *data)
{
GAtChat *chat = data;
struct cv_data *cvd;
struct gprs_data *gd = ofono_gprs_get_data(gprs);
g_at_chat_register(gd->chat, "+CGEV:", cgev_notify, FALSE, gprs, NULL);
- g_at_chat_register(gd->chat, "+CGREG:", cgreg_notify, FALSE, gprs, NULL);
+ g_at_chat_register(gd->chat, "+CGREG:", cgreg_notify,
+ FALSE, gprs, NULL);
ofono_gprs_register(gprs);
}
return;
}
- ofono_debug("Got new SMS Deliver PDU via CMT: %s, %d", hexpdu, tpdu_len);
+ ofono_debug("Got new SMS Deliver PDU via CMT: %s, %d",
+ hexpdu, tpdu_len);
decode_hex_own_buf(hexpdu, -1, &pdu_len, 0, pdu);
ofono_sms_deliver_notify(sms, pdu, pdu_len, tpdu_len);
/* TODO: Figure out what to do with 8 bit data */
ofono_error("8-bit coded USSD response received");
status = 4; /* Not supported */
- }
- else {
+ } else {
/* No other encoding is mentioned in TS27007 7.15 */
ofono_error("Unsupported USSD data coding scheme (%02x)", dcs);
status = 4; /* Not supported */
dump_response("clcc_poll_cb", ok, result);
if (!ok) {
- ofono_error("We are polling CLCC and CLCC resulted in an error");
+ ofono_error("We are polling CLCC and received an error");
ofono_error("All bets are off for call management");
return;
}
*/
nc->clip_validity = oc->clip_validity;
- if (memcmp(nc, oc, sizeof(struct ofono_call)) && !nc->type)
+ if (memcmp(nc, oc, sizeof(struct ofono_call)) &&
+ !nc->type)
ofono_voicecall_notify(vc, nc);
n = n->next;
call = create_call(vc, 0, 0, 2, num, type, validity);
if (!call) {
- ofono_error("Unable to allocate call, call tracking will fail!");
+ ofono_error("Unable to malloc, call tracking will fail!");
return;
}
num, num_type, validity);
if (!call) {
- ofono_error("malloc call structfailed. Call management is fubar");
+ ofono_error("Unable to malloc. Call management is fubar");
return;
}