about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
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);
 }
 
 //