From c72af721b9e38501aa0d0d1f8095d7a9982da2de Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 21 Dec 2012 18:56:50 +0100 Subject: [PATCH] obexd: Add a few more debug statements --- obexd/client/bluetooth.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/obexd/client/bluetooth.c b/obexd/client/bluetooth.c index e453b68f0..a832a3fb1 100644 --- a/obexd/client/bluetooth.c +++ b/obexd/client/bluetooth.c @@ -336,6 +336,8 @@ static sdp_session_t *service_connect(const bdaddr_t *src, const bdaddr_t *dst, sdp_session_t *sdp; GIOChannel *io; + DBG(""); + sdp = sdp_connect(src, dst, SDP_NON_BLOCKING); if (sdp == NULL) return NULL; @@ -358,6 +360,8 @@ static int session_connect(struct bluetooth_session *session) { int err; + DBG("session %p", session); + if (session->port > 0) { session->io = transport_connect(&session->src, &session->dst, session->port, @@ -380,7 +384,8 @@ static guint bluetooth_connect(const char *source, const char *destination, struct bluetooth_session *session; static guint id = 0; - DBG(""); + DBG("src %s dest %s service %s port %u", + source, destination, service, port); if (destination == NULL) return 0; -- 2.47.3