summaryrefslogtreecommitdiffstats
path: root/src/sdpd.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-09-11 20:49:01 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-09-11 20:49:01 +0200
commit3193b75007d8dcb15ef0ee3c75ae1fe467a90730 (patch)
tree86ae1388d4ecb03e07bf7c9dd0202ac770b07579 /src/sdpd.h
parentc1bf8e7f46db78c7cc760d22b5c30fd2c6643620 (diff)
Hide the verbose SDP debug behind SDP_DEBUG
Diffstat (limited to 'src/sdpd.h')
-rw-r--r--src/sdpd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sdpd.h b/src/sdpd.h
index 15eb5940..194d45cb 100644
--- a/src/sdpd.h
+++ b/src/sdpd.h
@@ -27,6 +27,12 @@
#include <bluetooth/bluetooth.h>
#include <bluetooth/sdp.h>
+#ifdef SDP_DEBUG
+#define SDPDBG(fmt, arg...) syslog(LOG_DEBUG, "%s: " fmt "\n", __func__ , ## arg)
+#else
+#define SDPDBG(fmt...)
+#endif
+
typedef struct request {
bdaddr_t device;
bdaddr_t bdaddr;