aboutsummaryrefslogtreecommitdiffstats
path: root/slirp/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp/debug.c')
-rw-r--r--slirp/debug.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/slirp/debug.c b/slirp/debug.c
index d3d8c57..a46626b 100644
--- a/slirp/debug.c
+++ b/slirp/debug.c
@@ -42,7 +42,7 @@ debug_init(file, dbg)
fflush(dfd);
slirp_debug = dbg;
} else {
- lprint("Error: Debugging file \"%s\" could not be opened: %s\r\n",
+ fprintf(stderr, "Error: Debugging file \"%s\" could not be opened: %s\r\n",
file, strerror(errno));
}
}
@@ -268,30 +268,6 @@ icmpstats()
}
void
-mbufstats()
-{
- struct mbuf *m;
- int i;
-
- lprint(" \r\n");
-
- lprint("Mbuf stats:\r\n");
-
- lprint(" %6d mbufs allocated (%d max)\r\n", mbuf_alloced, mbuf_max);
-
- i = 0;
- for (m = m_freelist.m_next; m != &m_freelist; m = m->m_next)
- i++;
- lprint(" %6d mbufs on free list\r\n", i);
-
- i = 0;
- for (m = m_usedlist.m_next; m != &m_usedlist; m = m->m_next)
- i++;
- lprint(" %6d mbufs on used list\r\n", i);
- lprint(" %6d mbufs queued as packets\r\n\r\n", if_queued);
-}
-
-void
sockstats()
{
char buff[256];