summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPetteri Tikander <petteri.tikander@ixonos.com>2010-10-21 17:58:12 +0300
committerDenis Kenzior <denkenz@gmail.com>2010-10-21 23:13:23 -0500
commit6d07c1cffe6d37263b5751e5a56a6b983f992ddd (patch)
treef56d8be45ee6b8dd59e357446ce05663628fc077 /src
parentcf2ba64872edb772160d9a2c9738b7509f0a002b (diff)
downloadofono-6d07c1cffe6d37263b5751e5a56a6b983f992ddd.tar.bz2
modem: add debugs to monitor modem state changes
Diffstat (limited to 'src')
-rw-r--r--src/modem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modem.c b/src/modem.c
index 7a29edfe..583b79fd 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -330,6 +330,8 @@ static void flush_atoms(struct ofono_modem *modem, enum modem_state new_state)
GSList *prev;
GSList *tmp;
+ DBG("");
+
prev = NULL;
cur = modem->atoms;
@@ -367,6 +369,8 @@ static void modem_change_state(struct ofono_modem *modem,
enum modem_state old_state = modem->modem_state;
ofono_bool_t new_online = new_state == MODEM_STATE_ONLINE;
+ DBG("old state: %d, new state: %d", old_state, new_state);
+
if (old_state == new_state)
return;