summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>2010-07-09 13:21:45 +0300
committerLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>2010-07-09 13:21:45 +0300
commit6cd710b04117a901890f1d87a7e58a74556612c9 (patch)
treee5e3e37b8f3a444d4f94f1da426411e690988a1c
parente919b22c83e7e13986056b173c95f198ac0e37b7 (diff)
downloadobexd-6cd710b04117a901890f1d87a7e58a74556612c9.tar.gz
core: add debug for read stream
-rw-r--r--src/obex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/obex.c b/src/obex.c
index d89f41c..4e3ec48 100644
--- a/src/obex.c
+++ b/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);