about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2010-07-02 08:17:09 -0700
committerGraydon Hoare <graydon@mozilla.com>2010-07-02 08:17:09 -0700
commitc7ef0ded810a57217bfd3651b92243612ac137bc (patch)
tree93a78b841b3bcfa5715248cf97d102bd32951d72 /src/rt/rust_upcall.cpp
parentc33a522097eaf54d8006cd935d49bdc5435d60e7 (diff)
downloadrust-c7ef0ded810a57217bfd3651b92243612ac137bc.tar.gz
rust-c7ef0ded810a57217bfd3651b92243612ac137bc.zip
Improve logging on upcall_malloc.
Diffstat (limited to 'src/rt/rust_upcall.cpp')
-rw-r--r--src/rt/rust_upcall.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index ffe775325fc..b9cd68fc190 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -328,11 +328,16 @@ upcall_malloc(rust_task *task, size_t nbytes, type_desc *td)
 {
     LOG_UPCALL_ENTRY(task);
 
+    task->dom->log(rust_log::UPCALL|rust_log::MEM,
+                   "upcall malloc(%" PRIdPTR ", 0x%" PRIxPTR ")"
+                   " with gc-chain head = 0x%" PRIxPTR,
+                   nbytes, td, task->gc_alloc_chain);
     void *p = task->malloc(nbytes, td);
     task->dom->log(rust_log::UPCALL|rust_log::MEM,
-                   "upcall malloc(%u) = 0x%" PRIxPTR
+                   "upcall malloc(%" PRIdPTR ", 0x%" PRIxPTR
+                   ") = 0x%" PRIxPTR
                    " with gc-chain head = 0x%" PRIxPTR,
-                   nbytes, (uintptr_t)p, task->gc_alloc_chain);
+                   nbytes, td, (uintptr_t)p, task->gc_alloc_chain);
     return (uintptr_t) p;
 }