diff options
| author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-10-14 17:11:56 -0300 | 
|---|---|---|
| committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-10-14 17:11:56 -0300 | 
| commit | 948e66f85e25b39cb839c38a03fc6a17896a6395 (patch) | |
| tree | 4e59190e40f8f489525052efb4f5dc95280d3092 /src | |
| parent | 2e8e3f8cd8b288f3679dae3bc7d948d112e64f9f (diff) | |
Fix build error when SDP_DEBUG is enabled
Diffstat (limited to 'src')
| -rw-r--r-- | src/sdpd-request.c | 4 | ||||
| -rw-r--r-- | src/sdpd.h | 1 | 
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;  	} @@ -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...) | 
