Skip to content

Commit cd2b41e

Browse files
committed
---
yaml --- r: 49992 b: refs/heads/auto c: 723d224 h: refs/heads/master v: v3
1 parent ac99bf2 commit cd2b41e

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: d30c75897416621092023063b885494f2a64e406
17+
refs/heads/auto: 723d2247c1e310a49dd49afc80e7c8a153bd1432
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167

branches/auto/src/libcore/rt/mod.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,10 @@ macro_rules! rtdebug_ (
1515
dumb_println(fmt!( $($arg),+ ));
1616

1717
fn dumb_println(s: &str) {
18-
use str::as_c_str;
19-
use libc::c_char;
20-
21-
extern {
22-
fn printf(s: *c_char);
23-
}
24-
25-
do as_c_str(s.to_str() + "\n") |s| {
26-
unsafe { printf(s); }
27-
}
18+
use io::WriterUtil;
19+
let dbg = ::libc::STDERR_FILENO as ::io::fd_t;
20+
dbg.write_str(s);
21+
dbg.write_str("\n");
2822
}
2923

3024
} )

0 commit comments

Comments
 (0)