summaryrefslogtreecommitdiffstats
path: root/plugins/zte.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-09-24 14:14:04 +0900
committerMarcel Holtmann <marcel@holtmann.org>2010-09-24 14:14:04 +0900
commitbe1912fe9c30426dc138a6a7acec068e9151297e (patch)
tree5611f2de3e7487493495fd3265875ef4b972ba44 /plugins/zte.c
parent7ab1258a76c50b45d8de9235ee1e72d1b495d73f (diff)
downloadofono-be1912fe9c30426dc138a6a7acec068e9151297e.tar.bz2
Make debug handling with OFONO_AT_DEBUG a bit more consistent
Diffstat (limited to 'plugins/zte.c')
-rw-r--r--plugins/zte.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/zte.c b/plugins/zte.c
index c82b2b51..07f84665 100644
--- a/plugins/zte.c
+++ b/plugins/zte.c
@@ -89,6 +89,7 @@ static void zte_remove(struct ofono_modem *modem)
static void zte_debug(const char *str, void *user_data)
{
const char *prefix = user_data;
+
ofono_info("%s%s", prefix, str);
}
@@ -136,7 +137,7 @@ static void zte_disconnect(gpointer user_data)
g_at_chat_unref(data->modem);
data->modem = NULL;
- data->modem = open_device(modem, "Modem", "Modem:");
+ data->modem = open_device(modem, "Modem", "Modem: ");
if (!data->modem)
return;
@@ -166,14 +167,14 @@ static int zte_enable(struct ofono_modem *modem)
DBG("%p", modem);
- data->modem = open_device(modem, "Modem", "Modem:");
+ data->modem = open_device(modem, "Modem", "Modem: ");
if (data->modem == NULL)
return -EINVAL;
g_at_chat_set_disconnect_function(data->modem,
zte_disconnect, modem);
- data->aux = open_device(modem, "Aux", "Aux:");
+ data->aux = open_device(modem, "Aux", "Aux: ");
if (data->aux == NULL) {
g_at_chat_unref(data->modem);
data->modem = NULL;