From ac822a52be47579ffa59d5ca3e125680a79545d0 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 25 Sep 2012 11:44:23 -0700 Subject: rustc: Stop using shape code for logging --- src/rt/rust_builtin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rt/rust_builtin.cpp') 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); } // -- cgit 1.4.1-3-g733a5