From 279971229fcf6280b939ed1ce3318f40f21136b1 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 9 Jul 2010 13:21:45 +0300 Subject: [PATCH] obexd: add debug for read stream --- obexd/src/obex.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/obexd/src/obex.c b/obexd/src/obex.c index d89f41cbe..4e3ec48a3 100644 --- a/obexd/src/obex.c +++ b/obexd/src/obex.c @@ -558,6 +558,10 @@ static int obex_read_stream(struct obex_session *os, obex_t *obex, int32_t len = 0; const uint8_t *buffer; + DBG("name=%s type=%s rx_mtu=%d file=%p", + os->name ? os->name : "", os->type ? os->type : "", + os->rx_mtu, os->object); + if (os->aborted) return -EPERM; @@ -620,7 +624,7 @@ static int obex_write_stream(struct obex_session *os, unsigned int flags; uint8_t hi; - DBG("obex_write_stream: name=%s type=%s tx_mtu=%d file=%p", + DBG("name=%s type=%s tx_mtu=%d file=%p", os->name ? os->name : "", os->type ? os->type : "", os->tx_mtu, os->object); -- 2.47.3