rustc: Fix calls to the logging function when the must_cast flag is true; stop using shape code for logging
This commit is contained in:
parent
267ab11cca
commit
f41c53667e
6 changed files with 69 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue