File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
branches/auto/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 @@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: d30c75897416621092023063b885494f2a64e406
17
+ refs/heads/auto: 723d2247c1e310a49dd49afc80e7c8a153bd1432
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
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