aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_log.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-01-14 13:41:39 -0800
committerGraydon Hoare <[email protected]>2011-01-14 13:41:39 -0800
commitfe1a4ab23c6493d72e41b5ed8d87e7741e847154 (patch)
tree0e8d2ddadda85c63cb959a88ea8bea1c7f9ef6d1 /src/rt/rust_log.cpp
parentMake lookup non recursive and instead move the recursion just to (diff)
downloadrust-fe1a4ab23c6493d72e41b5ed8d87e7741e847154.tar.xz
rust-fe1a4ab23c6493d72e41b5ed8d87e7741e847154.zip
Change log buffer butes to a symbolic const in runtime.
Diffstat (limited to 'src/rt/rust_log.cpp')
-rw-r--r--src/rt/rust_log.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp
index 20f3f146..d0ba85de 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);