about summary refs log tree commit diff
path: root/src/rt/circular_buffer.cpp
diff options
context:
space:
mode:
authorJon Morton <jonanin@gmail.com>2012-04-01 22:18:40 -0500
committerJon Morton <jonanin@gmail.com>2012-04-01 22:18:40 -0500
commit128a8b6ed500f74fa802aa9749b3b7a19ebfffc9 (patch)
tree659d9f43bfe1768ab509892e739fd3aa015ac38f /src/rt/circular_buffer.cpp
parent413994ea3eed976a6fe97f3d6cfeb0c2f453e77f (diff)
downloadrust-128a8b6ed500f74fa802aa9749b3b7a19ebfffc9.tar.gz
rust-128a8b6ed500f74fa802aa9749b3b7a19ebfffc9.zip
remove rust_srv
Diffstat (limited to 'src/rt/circular_buffer.cpp')
-rw-r--r--src/rt/circular_buffer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rt/circular_buffer.cpp b/src/rt/circular_buffer.cpp
index a4f73f2362a..58e14412e46 100644
--- a/src/rt/circular_buffer.cpp
+++ b/src/rt/circular_buffer.cpp
@@ -24,8 +24,12 @@ circular_buffer::circular_buffer(rust_kernel *kernel, size_t unit_sz) :
 circular_buffer::~circular_buffer() {
     KLOG(kernel, mem, "~circular_buffer 0x%" PRIxPTR, this);
     assert(_buffer);
-    W(kernel, _unread == 0,
-      "freeing circular_buffer with %d unread bytes", _unread);
+    if (_unread != 0) {
+        fprintf(stderr, "warning: freeing circular_buffer with"
+                " %lu unread bytes", _unread);
+        fflush(stderr);
+    }
+
     kernel->free(_buffer);
 }