[PATCH] sdp/build: Build fails when SDP_DEBUG enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Enabling SDP_DEBUG prevents build to be done.
---
 lib/sdp.c          |    3 +--
 src/sdpd-request.c |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/sdp.c b/lib/sdp.c
index 3dcef60..de5277f 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -1387,7 +1387,7 @@ static void attr_print_func(void *value, void *userData)
 
 	SDPDBG("=====================================\n");
 	SDPDBG("ATTRIBUTE IDENTIFIER : 0x%x\n",  d->attrId);
-	SDPDBG("ATTRIBUTE VALUE PTR : 0x%x\n", (uint32_t)value);
+	SDPDBG("ATTRIBUTE VALUE PTR : %p\n", value);
 	if (d)
 		sdp_data_print(d);
 	else
@@ -3410,7 +3410,6 @@ int sdp_service_search_req(sdp_session_t *session, const sdp_list_t *search,
 		scanned += sizeof(uint16_t);
 		pdata_len -= sizeof(uint16_t);
 
-		SDPDBG("Total svc count: %d\n", total_rec_count);
 		SDPDBG("Current svc count: %d\n", rec_count);
 		SDPDBG("ResponseLength: %d\n", rsplen);
 
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index 93acb24..6a903c6 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -1037,7 +1037,7 @@ send_rsp:
 	if (send(req->sock, rsp.data, rsp.data_size, 0) < 0)
 		error("send: %s (%d)", strerror(errno), errno);
 
-	SDPDBG("Bytes Sent : %d", sent);
+	SDPDBG("Bytes Sent : %d", rsp.data_size);
 
 	free(rsp.data);
 	free(req->buf);
-- 
1.7.9

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux