diff options
| author | Ted Horst <ted.horst@earthlink.net> | 2012-02-03 18:43:48 -0600 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-03 20:55:53 -0800 |
| commit | d65eabd5de4c41e4bc93b9c6c03d6278299ceb76 (patch) | |
| tree | f260590bfc3287a69502feaf77ed03e437762199 /src/rt/rust_srv.cpp | |
| parent | f10d0e1bd4c05b2247589e2e843f72d6ec66a6a3 (diff) | |
| download | rust-d65eabd5de4c41e4bc93b9c6c03d6278299ceb76.tar.gz rust-d65eabd5de4c41e4bc93b9c6c03d6278299ceb76.zip | |
log to stderr instead of stdout
includes rustc diagnostics runtest updated to check stderr for errors
Diffstat (limited to 'src/rt/rust_srv.cpp')
| -rw-r--r-- | src/rt/rust_srv.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/rt/rust_srv.cpp b/src/rt/rust_srv.cpp index 758174a4ebb..9192af511d9 100644 --- a/src/rt/rust_srv.cpp +++ b/src/rt/rust_srv.cpp @@ -25,11 +25,7 @@ rust_srv::realloc(void *p, size_t bytes) { void rust_srv::log(char const *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); + fprintf(stderr, "rust: %s\n", msg); } void |
