about summary refs log tree commit diff
path: root/src/rt/rust_debug.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-09-23 12:27:13 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-09-23 12:27:13 -0700
commit82935c2d17a8afd494699da5bea85b578c0d58c3 (patch)
treef31cdae2a1d93401bdb72429289db386b709bc5c /src/rt/rust_debug.cpp
parent03f0932a6db65859292fb26280dbcb32db392a92 (diff)
downloadrust-82935c2d17a8afd494699da5bea85b578c0d58c3.tar.gz
rust-82935c2d17a8afd494699da5bea85b578c0d58c3.zip
rt: Fix message formatting issues in rust_debug
Diffstat (limited to 'src/rt/rust_debug.cpp')
-rw-r--r--src/rt/rust_debug.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rt/rust_debug.cpp b/src/rt/rust_debug.cpp
index e4aa3b2533c..7bb80a4f36e 100644
--- a/src/rt/rust_debug.cpp
+++ b/src/rt/rust_debug.cpp
@@ -71,10 +71,11 @@ dump_origin(rust_task *task, void *ptr) {
         std::cerr << "Try again with RUST_TRACK_ORIGINS=1." << std::endl;
     } else if (task->debug.origins.find(ptr) == task->debug.origins.end()) {
         std::cerr << "Pointer " << std::hex << (uintptr_t)ptr <<
-                     " does not have a tracked origin.";
+                     " does not have a tracked origin." << std::endl;
     } else {
-        std::cerr << "Origin of pointer " << std::hex << ":" << std::endl <<
-                     task->debug.origins[ptr];
+        std::cerr << "Origin of pointer " << std::hex << (uintptr_t)ptr <<
+                     ":" << std::endl << task->debug.origins[ptr] <<
+                     std::endl;
     }
 }