about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-09-25 12:17:20 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-09-25 14:56:17 -0700
commitf41c53667e3464ab324d4484e8601968f9eb313f (patch)
tree43ff99f52e85598fc9bd46817cdbf9759d147feb /src/rt/rust_builtin.cpp
parent267ab11cca722c1c83dcb6df949961390af787c1 (diff)
downloadrust-f41c53667e3464ab324d4484e8601968f9eb313f.tar.gz
rust-f41c53667e3464ab324d4484e8601968f9eb313f.zip
rustc: Fix calls to the logging function when the must_cast flag is true; stop using shape code for logging
Diffstat (limited to 'src/rt/rust_builtin.cpp')
-rw-r--r--src/rt/rust_builtin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 02bc86f88b6..91c5760d3e9 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -952,9 +952,9 @@ rust_call_tydesc_glue(void *root, size_t *tydesc, size_t glue_index) {
 
 // Don't run on the Rust stack!
 extern "C" void
-rust_log_str(uint32_t level, const char *str) {
+rust_log_str(uint32_t level, const char *str, size_t size) {
     rust_task *task = rust_get_current_task();
-    task->sched_loop->get_log().log(task, level, "%s", str);
+    task->sched_loop->get_log().log(task, level, "%.*s", (int)size, str);
 }
 
 //