diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-01-20 21:34:19 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-01-20 21:34:19 -0600 |
commit | 03fd69ace9d7c55834b0ecb5b7e1e2847d5ede1c (patch) | |
tree | f783f36e0e0711f9f8a4855d2303939eb89f0fb7 /src/cbs.c | |
parent | ea6ab1ea2bc35b24785253ad1497d8835425cb8a (diff) | |
download | ofono-03fd69ace9d7c55834b0ecb5b7e1e2847d5ede1c.tar.bz2 |
Fix: Print errors for unlikely CBS failures
These indicate driver / hardware issues rather than anything else.
Diffstat (limited to 'src/cbs.c')
-rw-r--r-- | src/cbs.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -186,8 +186,10 @@ void ofono_cbs_notify(struct ofono_cbs *cbs, const unsigned char *pdu, if (cbs->assembly == NULL) return; - if (!cbs->powered) + if (!cbs->powered) { + ofono_error("Ignoring CBS because powered is off"); return; + } if (!cbs_decode(pdu, pdu_len, &c)) { ofono_error("Unable to decode CBS PDU"); @@ -397,7 +399,8 @@ static void cbs_set_powered_cb(const struct ofono_error *error, void *data) DBusMessage *reply; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { - ofono_debug("Setting Cell Broadcast topics failed"); + ofono_error("Setting Cell Broadcast topics failed"); + if (!cbs->pending) return; |