summaryrefslogtreecommitdiffstats
path: root/gatchat/gsmdial.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-04-01 13:11:11 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-04-01 13:11:11 -0700
commitef82241deb1208a5551274929be7f8a8476fed36 (patch)
treebad4715e1b32b02b810f45b603c50fc8508ced22 /gatchat/gsmdial.c
parentdc55d14e9c73c45c42502c33a5ea4e32589c1642 (diff)
downloadofono-ef82241deb1208a5551274929be7f8a8476fed36.tar.bz2
Implement g_at_ppp_set_debug support
Diffstat (limited to 'gatchat/gsmdial.c')
-rw-r--r--gatchat/gsmdial.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index 1050bd6c..d15aaa91 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -71,7 +71,7 @@ static int oldmode = 0;
static void gsmdial_debug(const char *str, void *data)
{
- g_print("%s: %s\n", (const char *)data, str);
+ g_print("%s: %s\n", (const char *) data, str);
}
static gboolean quit_eventloop(gpointer user_data)
@@ -269,8 +269,9 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
g_print("Unable to create PPP object\n");
exit(1);
}
- g_at_ppp_set_credentials(ppp, option_username,
- option_password);
+ g_at_ppp_set_debug(ppp, gsmdial_debug, "PPP");
+
+ g_at_ppp_set_credentials(ppp, option_username, option_password);
/* set connect and disconnect callbacks */
g_at_ppp_set_connect_function(ppp, ppp_connect, NULL);