summaryrefslogtreecommitdiffstats
path: root/sdpd
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-11-17 13:03:48 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-11-17 13:03:48 +0000
commite487af3281692cdb05f9edef547b107c4cae6962 (patch)
tree8b20ea2894f71ea8e506eec566798a8acfb4b535 /sdpd
parentf3fc1efa4cbab8d6d107c6523d465d39c52e02c2 (diff)
Remove unneeded SDP_DEBUG checks
Diffstat (limited to 'sdpd')
-rw-r--r--sdpd/request.c4
-rw-r--r--sdpd/servicedb.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/sdpd/request.c b/sdpd/request.c
index fbcbaa8c..059aec40 100644
--- a/sdpd/request.c
+++ b/sdpd/request.c
@@ -426,13 +426,13 @@ static int extract_attrs(sdp_record_t *rec, sdp_list_t *seq, uint8_t dtd, sdp_bu
if (!rec)
return SDP_INVALID_RECORD_HANDLE;
-#ifdef SDP_DEBUG
if (seq)
debug("Entries in attr seq : %d\n", sdp_list_len(seq));
else
debug("NULL attribute descriptor\n");
+
debug("AttrDataType : %d\n", dtd);
-#endif
+
if (seq == NULL) {
debug("Attribute sequence is NULL\n");
return 0;
diff --git a/sdpd/servicedb.c b/sdpd/servicedb.c
index f433c5c3..d4ebd7de 100644
--- a/sdpd/servicedb.c
+++ b/sdpd/servicedb.c
@@ -169,10 +169,9 @@ void sdp_record_add(bdaddr_t *device, sdp_record_t *rec)
{
sdp_access_t *dev;
-#ifdef SDP_DEBUG
debug("Adding rec : 0x%lx\n", (long) rec);
debug("with handle : 0x%x\n", rec->handle);
-#endif
+
service_db = sdp_list_insert_sorted(service_db, rec, record_sort);
dev = malloc(sizeof(*dev));