From 6d07c1cffe6d37263b5751e5a56a6b983f992ddd Mon Sep 17 00:00:00 2001 From: Petteri Tikander Date: Thu, 21 Oct 2010 17:58:12 +0300 Subject: modem: add debugs to monitor modem state changes --- src/modem.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3