mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
Remove unneeded SDP_DEBUG checks
This commit is contained in:
parent
f3fc1efa4c
commit
e487af3281
@ -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;
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user