Skip to content

Commit 56bc6cb

Browse files
committed
---
yaml --- r: 50744 b: refs/heads/try c: 723d224 h: refs/heads/master v: v3
1 parent 0fbc7ef commit 56bc6cb

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
5-
refs/heads/try: d30c75897416621092023063b885494f2a64e406
5+
refs/heads/try: 723d2247c1e310a49dd49afc80e7c8a153bd1432
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)