summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sdpd-request.c4
-rw-r--r--src/sdpd.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index 3d82d51d..ed183980 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -209,7 +209,7 @@ static int sdp_set_cstate_pdu(sdp_buf_t *buf, sdp_cont_state_t *cstate)
int length = 0;
if (cstate) {
- SDPDBG("Non null sdp_cstate_t id : 0x%lx", cstate->timestamp);
+ SDPDBG("Non null sdp_cstate_t id : 0x%x", cstate->timestamp);
*(uint8_t *)pdata = sizeof(sdp_cont_state_t);
pdata += sizeof(uint8_t);
length += sizeof(uint8_t);
@@ -242,7 +242,7 @@ static sdp_cont_state_t *sdp_cstate_get(uint8_t *buffer)
if (!cstate)
return NULL;
memcpy(cstate, (sdp_cont_state_t *)pdata, sizeof(sdp_cont_state_t));
- SDPDBG("Cstate TS : 0x%lx", cstate->timestamp);
+ SDPDBG("Cstate TS : 0x%x", cstate->timestamp);
SDPDBG("Bytes sent : %d", cstate->cStateValue.maxBytesSent);
return cstate;
}
diff --git a/src/sdpd.h b/src/sdpd.h
index 194d45cb..009c4eed 100644
--- a/src/sdpd.h
+++ b/src/sdpd.h
@@ -28,6 +28,7 @@
#include <bluetooth/sdp.h>
#ifdef SDP_DEBUG
+#include <syslog.h>
#define SDPDBG(fmt, arg...) syslog(LOG_DEBUG, "%s: " fmt "\n", __func__ , ## arg)
#else
#define SDPDBG(fmt...)