diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-09-24 14:14:04 +0900 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-09-24 14:14:04 +0900 |
commit | be1912fe9c30426dc138a6a7acec068e9151297e (patch) | |
tree | 5611f2de3e7487493495fd3265875ef4b972ba44 /plugins/palmpre.c | |
parent | 7ab1258a76c50b45d8de9235ee1e72d1b495d73f (diff) |
Make debug handling with OFONO_AT_DEBUG a bit more consistent
Diffstat (limited to 'plugins/palmpre.c')
-rw-r--r-- | plugins/palmpre.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/palmpre.c b/plugins/palmpre.c index 7d2aeb43..17148637 100644 --- a/plugins/palmpre.c +++ b/plugins/palmpre.c @@ -79,7 +79,9 @@ static void palmpre_remove(struct ofono_modem *modem) static void palmpre_debug(const char *str, void *user_data) { - ofono_info("%s", str); + const char *prefix = user_data; + + ofono_info("%s%s", prefix, str); } static void cfun_set_on_cb(gboolean ok, GAtResult *result, gpointer user_data) @@ -126,7 +128,7 @@ static int palmpre_enable(struct ofono_modem *modem) return -ENOMEM; if (getenv("OFONO_AT_DEBUG")) - g_at_chat_set_debug(data->chat, palmpre_debug, NULL); + g_at_chat_set_debug(data->chat, palmpre_debug, ""); /* Ensure terminal is in a known state */ g_at_chat_send(data->chat, "ATZ E0 +CMEE=1", NULL, NULL, NULL, NULL); |