File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
// see http://embed.rs/articles/2016/semi-hosting-rust/
2
2
3
+ #![ allow( dead_code) ]
4
+
3
5
use core:: fmt;
4
6
5
7
unsafe fn call_svc ( num : usize , addr : * const ( ) ) -> usize {
@@ -61,9 +63,9 @@ macro_rules! hprint {
61
63
} ) ;
62
64
}
63
65
64
- pub fn print ( args : fmt:: Arguments ) {
65
- use core:: fmt:: Write ;
66
- Stdout . write_fmt ( args) . unwrap ( ) ;
66
+ pub fn print ( _args : fmt:: Arguments ) {
67
+ // use core::fmt::Write;
68
+ // Stdout.write_fmt(args).unwrap();
67
69
}
68
70
69
71
static mut STDOUT_BUFFER : ( [ u8 ; 100 ] , usize ) = ( [ 0 ; 100 ] , 0 ) ;
@@ -99,9 +101,9 @@ macro_rules! hprint_err {
99
101
} ) ;
100
102
}
101
103
102
- pub fn print_err ( args : fmt:: Arguments ) {
103
- use core:: fmt:: Write ;
104
- Stderr . write_fmt ( args) . unwrap ( ) ;
104
+ pub fn print_err ( _args : fmt:: Arguments ) {
105
+ // use core::fmt::Write;
106
+ // Stderr.write_fmt(args).unwrap();
105
107
}
106
108
107
109
struct Stderr ;
You can’t perform that action at this time.
0 commit comments