From fe1a4ab23c6493d72e41b5ed8d87e7741e847154 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 14 Jan 2011 13:41:39 -0800 Subject: Change log buffer butes to a symbolic const in runtime. --- src/rt/rust_log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rt/rust_log.cpp') diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp index 20f3f146a88..d0ba85de868 100644 --- a/src/rt/rust_log.cpp +++ b/src/rt/rust_log.cpp @@ -136,7 +136,7 @@ append_string(char *buffer, rust_log::ansi_color color, void rust_log::trace_ln(uint32_t thread_id, char *prefix, char *message) { - char buffer[1024] = ""; + char buffer[BUF_BYTES] = ""; _log_lock.lock(); append_string(buffer, "%-34s", prefix); for (uint32_t i = 0; i < _indent; i++) { @@ -158,7 +158,7 @@ rust_log::trace_ln(rust_task *task, char *message) { #else uint32_t thread_id = hash((uint32_t) pthread_self()); #endif - char prefix[1024] = ""; + char prefix[BUF_BYTES] = ""; if (_dom && _dom->name) { append_string(prefix, "%04" PRIxPTR ":%.10s:", thread_id, _dom->name); -- cgit 1.4.1-3-g733a5