All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gprs: add debug info
@ 2010-08-26 13:08 Pekka.Pessi
  2010-08-26 15:40 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Pekka.Pessi @ 2010-08-26 13:08 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1455 bytes --]

From: Pekka Pessi <Pekka.Pessi@nokia.com>

---
 src/gprs.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/gprs.c b/src/gprs.c
index 9b11053..d57115b 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -945,6 +945,9 @@ static void registration_status_cb(const struct ofono_error *error,
 {
 	struct ofono_gprs *gprs = data;
 
+	DBG("%s error %d status %d", __ofono_atom_get_path(gprs->atom),
+		error->type, status);
+
 	if (error->type == OFONO_ERROR_TYPE_NO_ERROR)
 		ofono_gprs_status_notify(gprs, status);
 
@@ -958,6 +961,8 @@ static void gprs_attach_callback(const struct ofono_error *error, void *data)
 {
 	struct ofono_gprs *gprs = data;
 
+	DBG("%s error = %d", __ofono_atom_get_path(gprs->atom), error->type);
+
 	gprs->flags &= ~GPRS_FLAG_ATTACHING;
 
 	if (error->type != OFONO_ERROR_TYPE_NO_ERROR)
@@ -1425,6 +1430,8 @@ static GDBusSignalTable manager_signals[] = {
 
 void ofono_gprs_detached_notify(struct ofono_gprs *gprs)
 {
+	DBG("%s", __ofono_atom_get_path(gprs->atom));
+
 	gprs->driver_attached = FALSE;
 	gprs_attached_update(gprs);
 
@@ -1437,6 +1444,8 @@ void ofono_gprs_detached_notify(struct ofono_gprs *gprs)
 
 void ofono_gprs_status_notify(struct ofono_gprs *gprs, int status)
 {
+	DBG("%s status %d", __ofono_atom_get_path(gprs->atom), status);
+
 	gprs->status = status;
 
 	if (status != NETWORK_REGISTRATION_STATUS_REGISTERED &&
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-26 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-26 13:08 [PATCH] gprs: add debug info Pekka.Pessi
2010-08-26 15:40 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.