about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-10 16:10:57 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-10 17:26:22 -0800
commite4f980810b8787626b32fc116e491c0ff9e56ba0 (patch)
tree54846f214cf1758a8e6079be028c980fdff15b9d /src/rt/rust_builtin.cpp
parent08d0ff38bc6efe2915b877dfec443a3d7853831b (diff)
downloadrust-e4f980810b8787626b32fc116e491c0ff9e56ba0.tar.gz
rust-e4f980810b8787626b32fc116e491c0ff9e56ba0.zip
rt: Simplify channel-port association
It turns out that there's only ever a single channel per port these days,
and it always has the same lifetime as the port, so we don't need a list or a
complex association protocol.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
-rw-r--r--src/rt/rust_builtin.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 17cb801d575..89bd58effa9 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -538,9 +538,8 @@ port_recv(uintptr_t *dptr, rust_port *port) {
         scoped_lock with(port->lock);
 
         LOG(task, comm, "port: 0x%" PRIxPTR ", dptr: 0x%" PRIxPTR
-            ", size: 0x%" PRIxPTR ", chan_no: %d",
-            (uintptr_t) port, (uintptr_t) dptr, port->unit_sz,
-            port->chans.length());
+            ", size: 0x%" PRIxPTR,
+            (uintptr_t) port, (uintptr_t) dptr, port->unit_sz);
 
         if (port->receive(dptr)) {
             return;