diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-02-08 12:09:01 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-02-08 12:09:01 -0600 |
commit | 7f9a9b0cdc82d5bb03230a343d5b1504f210c447 (patch) | |
tree | 9f6e294750857e78092b6cc805cdb4218caa8acd /drivers/atmodem/network-registration.c | |
parent | 87ca1b0c8f4c5b441eb3209b2b0c867870596882 (diff) | |
download | ofono-7f9a9b0cdc82d5bb03230a343d5b1504f210c447.tar.bz2 |
Fix: Don't use ofono_debug directly in plugins
Diffstat (limited to 'drivers/atmodem/network-registration.c')
-rw-r--r-- | drivers/atmodem/network-registration.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/atmodem/network-registration.c b/drivers/atmodem/network-registration.c index e8bdd770..d6651532 100644 --- a/drivers/atmodem/network-registration.c +++ b/drivers/atmodem/network-registration.c @@ -166,7 +166,7 @@ static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) op.status = 2; op.tech = tech; - ofono_debug("cops_cb: %s, %s %s %d", name, nd->mcc, nd->mnc, tech); + DBG("cops_cb: %s, %s %s %d", name, nd->mcc, nd->mnc, tech); cb(&error, &op, cbd->data); @@ -212,7 +212,7 @@ static void cops_numeric_cb(gboolean ok, GAtResult *result, gpointer user_data) extract_mcc_mnc(str, nd->mcc, nd->mnc); - ofono_debug("Cops numeric got mcc: %s, mnc: %s", nd->mcc, nd->mnc); + DBG("Cops numeric got mcc: %s, mnc: %s", nd->mcc, nd->mnc); return; @@ -282,7 +282,7 @@ static void cops_list_cb(gboolean ok, GAtResult *result, gpointer user_data) num += 1; } - ofono_debug("Got %d elements", num); + DBG("Got %d elements", num); list = g_try_new0(struct ofono_network_operator, num); @@ -343,15 +343,15 @@ static void cops_list_cb(gboolean ok, GAtResult *result, gpointer user_data) } } - ofono_debug("Got %d operators", num); + DBG("Got %d operators", num); { int i = 0; for (; i < num; i++) { - ofono_debug("Operator: %s, %s, %s, status: %d, %d", - list[i].name, list[i].mcc, list[i].mnc, - list[i].status, list[i].tech); + DBG("Operator: %s, %s, %s, status: %d, %d", + list[i].name, list[i].mcc, list[i].mnc, + list[i].status, list[i].tech); } } @@ -459,7 +459,7 @@ error: static inline void report_signal_strength(struct ofono_netreg *netreg, int strength) { - ofono_debug("csq_notify: %d", strength); + DBG("csq_notify: %d", strength); if (strength == 99) strength = -1; @@ -657,7 +657,7 @@ static void csq_cb(gboolean ok, GAtResult *result, gpointer user_data) g_at_result_iter_next_number(&iter, &strength); - ofono_debug("csq_cb: %d", strength); + DBG("csq_cb: %d", strength); if (strength == 99) strength = -1; |