From 62454c16e18ba9ed03b5bc55ea59d28d666d8a48 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 2 Dec 2014 15:46:06 +0100 Subject: [PATCH] Remove debugging messages. --- utcp.c | 3 --- 1 file changed, 3 deletions(-) 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) -- 2.39.5