From: Guus Sliepen Date: Tue, 2 Dec 2014 14:46:06 +0000 (+0100) Subject: Remove debugging messages. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=62454c16e18ba9ed03b5bc55ea59d28d666d8a48;p=utcp Remove debugging messages. --- diff --git a/utcp.c b/utcp.c index df2a31e..a79304c 100644 --- 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)