diff options
author | Luiz Augusto von Dentz <luiz.dentz-von@nokia.com> | 2010-07-09 13:21:45 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz-von@nokia.com> | 2010-07-09 13:21:45 +0300 |
commit | 6cd710b04117a901890f1d87a7e58a74556612c9 (patch) | |
tree | e5e3e37b8f3a444d4f94f1da426411e690988a1c | |
parent | e919b22c83e7e13986056b173c95f198ac0e37b7 (diff) | |
download | obexd-6cd710b04117a901890f1d87a7e58a74556612c9.tar.gz |
core: add debug for read stream
-rw-r--r-- | src/obex.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |