about summary refs log tree commit diff
path: root/src/rt/rust_srv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_srv.cpp')
-rw-r--r--src/rt/rust_srv.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rt/rust_srv.cpp b/src/rt/rust_srv.cpp
index 9192af511d9..758174a4ebb 100644
--- a/src/rt/rust_srv.cpp
+++ b/src/rt/rust_srv.cpp
@@ -25,7 +25,11 @@ rust_srv::realloc(void *p, size_t bytes) {
 
 void
 rust_srv::log(char const *msg) {
-    fprintf(stderr, "rust: %s\n", msg);
+    printf("rust: %s\n", msg);
+    // FIXME: flushing each time is expensive, but at the moment
+    // necessary to get output through before a rust_task::fail
+    // call. This should be changed.
+    fflush(stdout);
 }
 
 void