aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_dom.cpp
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-08-17 23:26:43 -0700
committerMichael Bebenita <[email protected]>2010-08-17 23:49:57 -0700
commite20752de68fe336e9fa184bef0616e31c738452c (patch)
treecc2280b968295fbe7c75244a5569c69ca00ef775 /src/rt/rust_dom.cpp
parentFixed deadlock by removing channel flushing. (diff)
downloadrust-e20752de68fe336e9fa184bef0616e31c738452c.tar.xz
rust-e20752de68fe336e9fa184bef0616e31c738452c.zip
Added labels to blocking conditions.
Diffstat (limited to 'src/rt/rust_dom.cpp')
-rw-r--r--src/rt/rust_dom.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rt/rust_dom.cpp b/src/rt/rust_dom.cpp
index e49eeb22..c41e2688 100644
--- a/src/rt/rust_dom.cpp
+++ b/src/rt/rust_dom.cpp
@@ -363,9 +363,10 @@ rust_dom::log_state() {
log(rust_log::TASK, "blocked tasks:");
for (size_t i = 0; i < blocked_tasks.length(); i++) {
log(rust_log::TASK,
- "\t task: %s @0x%" PRIxPTR ", blocked on: 0x%" PRIxPTR,
+ "\t task: %s @0x%" PRIxPTR ", blocked on: 0x%" PRIxPTR
+ " '%s'",
blocked_tasks[i]->name, blocked_tasks[i],
- blocked_tasks[i]->cond);
+ blocked_tasks[i]->cond, blocked_tasks[i]->cond_name);
}
}
@@ -373,7 +374,7 @@ rust_dom::log_state() {
log(rust_log::TASK, "dead tasks:");
for (size_t i = 0; i < dead_tasks.length(); i++) {
log(rust_log::TASK, "\t task: %s 0x%" PRIxPTR ", ref_count: %d",
- dead_tasks[i], dead_tasks[i]->name,
+ dead_tasks[i]->name, dead_tasks[i],
dead_tasks[i]->ref_count);
}
}