diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-09-25 11:44:23 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-09-25 11:44:23 -0700 |
| commit | ac822a52be47579ffa59d5ca3e125680a79545d0 (patch) | |
| tree | 5ef280226f9e0f3dcdf3dbc2c766743f4cbcec35 /src/rt/rust_builtin.cpp | |
| parent | dbc00ced3a09a7a8c32d69a89b9e073252cca39d (diff) | |
| download | rust-ac822a52be47579ffa59d5ca3e125680a79545d0.tar.gz rust-ac822a52be47579ffa59d5ca3e125680a79545d0.zip | |
rustc: Stop using shape code for logging
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 4 |
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); } // |
