diff options
Diffstat (limited to 'sdpd')
-rw-r--r-- | sdpd/request.c | 4 | ||||
-rw-r--r-- | sdpd/servicedb.c | 3 |
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)); |