File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
branches/try/src/libcore/rt Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
5
- refs/heads/try: d30c75897416621092023063b885494f2a64e406
5
+ refs/heads/try: 723d2247c1e310a49dd49afc80e7c8a153bd1432
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -15,16 +15,10 @@ macro_rules! rtdebug_ (
15
15
dumb_println( fmt!( $( $arg) ,+ ) ) ;
16
16
17
17
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 " ) ;
28
22
}
29
23
30
24
} )
You can’t perform that action at this time.
0 commit comments