]> git.meshlink.io Git - utcp/commitdiff
Remove debugging messages.
authorGuus Sliepen <guus@meshlink.io>
Tue, 2 Dec 2014 14:46:06 +0000 (15:46 +0100)
committerGuus Sliepen <guus@meshlink.io>
Tue, 2 Dec 2014 14:46:06 +0000 (15:46 +0100)
utcp.c

diff --git a/utcp.c b/utcp.c
index df2a31ec6a5f7bcad210170eace9a7dda4a78c8e..a79304ca8114b717028e9f8d5e3ede76948e6ccf 100644 (file)
--- a/utcp.c
+++ b/utcp.c
@@ -130,13 +130,11 @@ static ssize_t buffer_put(struct buffer *buf, const void *data, size_t len) {
                if(newsize > buf->maxsize)
                        newsize = buf->maxsize;
                char *newdata = realloc(buf->data, newsize);
-               fprintf(stderr, "%p = realloc(%p, %zu)\n", newdata, buf->data, newsize);
                if(!newdata)
                        return -1;
                buf->data = newdata;
                buf->size = newsize;
        }
-       fprintf(stderr, "memcpy(%p, %p, %zu)\n", buf->data + buf->used, data, len);
        memcpy(buf->data + buf->used, data, len);
        buf->used += len;
        return len;
@@ -803,7 +801,6 @@ ssize_t utcp_recv(struct utcp *utcp, const void *data, size_t len) {
                        rxd = c->recv(c, data, len);
                        if(rxd != len) {
                                // TODO: once we have a receive buffer, handle the application not accepting all data.
-                               fprintf(stderr, "c->recv(%p, %p, %zu) returned %zd\n", c, data, len, rxd);
                                abort();
                        }
                        if(rxd < 0)