From e27279d7db7c8df6193434d7188573f995190e2a Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 20 Sep 2011 18:24:51 -0700 Subject: rt: Clean up debugging print statements in rust_obstack.cpp --- src/rt/rust_obstack.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/rt/rust_obstack.cpp') diff --git a/src/rt/rust_obstack.cpp b/src/rt/rust_obstack.cpp index 81d0076a37c..fc11eed86f4 100644 --- a/src/rt/rust_obstack.cpp +++ b/src/rt/rust_obstack.cpp @@ -17,6 +17,9 @@ #undef max #endif +#undef DPRINT +#define DPRINT(fmt, ...) + //const size_t DEFAULT_CHUNK_SIZE = 4096; const size_t DEFAULT_CHUNK_SIZE = 500000; const size_t DEFAULT_ALIGNMENT = 16; @@ -88,8 +91,6 @@ rust_obstack::alloc(size_t len, type_desc *tydesc) { if (!chunk) return alloc_new(len, tydesc); - DPRINT("alloc sz %u\n", (uint32_t)len); - void *ptr = chunk->alloc(len, tydesc); ptr = ptr ? ptr : alloc_new(len, tydesc); @@ -101,8 +102,6 @@ rust_obstack::free(void *ptr) { if (!ptr) return; - DPRINT("free ptr %p\n", ptr); - assert(chunk); while (!chunk->free(ptr)) { DPRINT("deleting chunk at %p\n", chunk); -- cgit 1.4.1-3-g733a5