In order to ease the debug task of peer state changes, inserted
this old state/new state track.
---
src/peer.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/peer.c b/src/peer.c
index 7e733d3..d5d7c8e 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -786,6 +786,9 @@ int connman_peer_set_state(struct connman_peer *peer,
enum connman_peer_state old_state = peer-state;
int err;
+ DBG(peer (%s) old state %d new state %d, peer-name,
+ old_state, new_state);
+
if (old_state == new_state)
return -EALREADY;
--
1.9.1
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman