Remove unneeded SDP_DEBUG checks

This commit is contained in:
Marcel Holtmann 2006-11-17 13:03:48 +00:00
parent f3fc1efa4c
commit e487af3281
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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));