Diff between c8808e3acd55fea9f667efaf9f51b6c3ef094713 and 31e5e927b9ae9619b5af343081f563a8e0d7bdc7

Changed Files

File Additions Deletions Status
profiles/network/connection.c +10 -0 modified

Full Patch

diff --git a/profiles/network/connection.c b/profiles/network/connection.c
index 671478c..3a913cf 100644
--- a/profiles/network/connection.c
+++ b/profiles/network/connection.c
@@ -217,6 +217,8 @@ static gboolean bnep_setup_cb(GIOChannel *chan, GIOCondition cond,
 	const char *path;
 	DBusConnection *conn;
 
+	DBG("cond %u", cond);
+
 	if (cond & G_IO_NVAL)
 		return FALSE;
 
@@ -319,6 +321,8 @@ static int bnep_send_conn_req(struct network_conn *nc)
 	unsigned char pkt[BNEP_MTU];
 	int fd;
 
+	DBG("");
+
 	/* Send request */
 	req = (void *) pkt;
 	req->type = BNEP_CONTROL;
@@ -440,6 +444,8 @@ int connection_connect(struct btd_device *device, uint16_t id)
 	const bdaddr_t *src;
 	const bdaddr_t *dst;
 
+	DBG("id %u", id);
+
 	peer = find_peer(peers, device);
 	if (!peer)
 		return -ENOENT;
@@ -681,6 +687,8 @@ int connection_register(struct btd_device *device, uint16_t id)
 	struct network_peer *peer;
 	struct network_conn *nc;
 
+	DBG("id %u", id);
+
 	peer = find_peer(peers, device);
 	if (!peer) {
 		peer = create_peer(device);
@@ -700,6 +708,8 @@ int connection_register(struct btd_device *device, uint16_t id)
 	nc->state = DISCONNECTED;
 	nc->peer = peer;
 
+	DBG("id %u registered", id);
+
 	peer->connections = g_slist_append(peer->connections, nc);
 
 	return 0;