From be1912fe9c30426dc138a6a7acec068e9151297e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 24 Sep 2010 14:14:04 +0900 Subject: Make debug handling with OFONO_AT_DEBUG a bit more consistent --- plugins/wavecom.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/wavecom.c') diff --git a/plugins/wavecom.c b/plugins/wavecom.c index 77b7aa16..73fa502c 100644 --- a/plugins/wavecom.c +++ b/plugins/wavecom.c @@ -62,7 +62,9 @@ static void wavecom_remove(struct ofono_modem *modem) static void wavecom_debug(const char *str, void *user_data) { - ofono_info("%s", str); + const char *prefix = user_data; + + ofono_info("%s%s", prefix, str); } static int wavecom_enable(struct ofono_modem *modem) @@ -110,7 +112,7 @@ static int wavecom_enable(struct ofono_modem *modem) return -ENOMEM; if (getenv("OFONO_AT_DEBUG")) - g_at_chat_set_debug(chat, wavecom_debug, NULL); + g_at_chat_set_debug(chat, wavecom_debug, ""); ofono_modem_set_data(modem, chat); -- cgit v1.2.3