From 9935a48e95e1a56b64f08e42abfae496f2906705 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Tue, 20 Jul 2010 15:16:09 -0700 Subject: Fix message formatting in runtime library. --- src/rt/rust_dom.cpp | 2 +- src/rt/rust_task.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/rt/rust_dom.cpp b/src/rt/rust_dom.cpp index 39124491..ac1e7d0c 100644 --- a/src/rt/rust_dom.cpp +++ b/src/rt/rust_dom.cpp @@ -339,7 +339,7 @@ rust_dom::start_main_loop() I(this, scheduled_task->running()); log(rust_log::TASK, - "activating task 0x%" PRIxPTR ", sp=x%" PRIxPTR, + "activating task 0x%" PRIxPTR ", sp=0x%" PRIxPTR, (uintptr_t)scheduled_task, scheduled_task->rust_sp); interrupt_flag = 0; diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 357edbf1..6f96ac91 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -280,9 +280,9 @@ rust_task::run_after_return(size_t nargs, uintptr_t glue) uintptr_t *retpc = ((uintptr_t *) sp) - 1; dom->log(rust_log::TASK|rust_log::MEM, - "run_after_return: overwriting retpc=x%" PRIxPTR - " @ runtime_sp=x%" PRIxPTR - " with glue=x%" PRIxPTR, + "run_after_return: overwriting retpc=0x%" PRIxPTR + " @ runtime_sp=0x%" PRIxPTR + " with glue=0x%" PRIxPTR, *retpc, sp, glue); // Move the current return address (which points into rust code) @@ -301,9 +301,9 @@ rust_task::run_on_resume(uintptr_t glue) uintptr_t* rsp = (uintptr_t*) rust_sp; rsp += n_callee_saves; dom->log(rust_log::TASK|rust_log::MEM, - "run_on_resume: overwriting retpc=x%" PRIxPTR - " @ rust_sp=x%" PRIxPTR - " with glue=x%" PRIxPTR, + "run_on_resume: overwriting retpc=0x%" PRIxPTR + " @ rust_sp=0x%" PRIxPTR + " with glue=0x%" PRIxPTR, *rsp, rsp, glue); *rsp = glue; } -- cgit v1.2.3