summaryrefslogtreecommitdiffstats
path: root/sdpd/sdpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'sdpd/sdpd.h')
-rw-r--r--sdpd/sdpd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sdpd/sdpd.h b/sdpd/sdpd.h
index 1f0d7e47..37c685e2 100644
--- a/sdpd/sdpd.h
+++ b/sdpd/sdpd.h
@@ -30,6 +30,15 @@
#ifndef SDPD_H
#define SDPD_H
+#define SDPINF(fmt, arg...) syslog(LOG_INFO, fmt "\n", ## arg)
+#define SDPERR(fmt, arg...) syslog(LOG_ERR, "%s: " fmt "\n", __func__ , ## arg)
+
+#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 bdaddr;
int local;