summaryrefslogtreecommitdiffstats
path: root/plugins/hso.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/hso.c
parent7ab1258a76c50b45d8de9235ee1e72d1b495d73f (diff)
downloadofono-be1912fe9c30426dc138a6a7acec068e9151297e.tar.bz2
Make debug handling with OFONO_AT_DEBUG a bit more consistent
Diffstat (limited to 'plugins/hso.c')
-rw-r--r--plugins/hso.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/hso.c b/plugins/hso.c
index bfc5c471..055c63b3 100644
--- a/plugins/hso.c
+++ b/plugins/hso.c
@@ -86,6 +86,7 @@ static void hso_remove(struct ofono_modem *modem)
static void hso_debug(const char *str, void *user_data)
{
const char *prefix = user_data;
+
ofono_info("%s%s", prefix, str);
}
@@ -157,7 +158,7 @@ static int hso_enable(struct ofono_modem *modem)
return -EIO;
if (getenv("OFONO_AT_DEBUG"))
- g_at_chat_set_debug(data->control, hso_debug, "Control:");
+ g_at_chat_set_debug(data->control, hso_debug, "Control: ");
data->app = create_port(app);
@@ -169,7 +170,7 @@ static int hso_enable(struct ofono_modem *modem)
}
if (getenv("OFONO_AT_DEBUG"))
- g_at_chat_set_debug(data->app, hso_debug, "App:");
+ g_at_chat_set_debug(data->app, hso_debug, "App: ");
g_at_chat_send(data->control, "ATE0", none_prefix, NULL, NULL, NULL);
g_at_chat_send(data->app, "ATE0", none_prefix, NULL, NULL, NULL);