File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,4 @@ int main(void)
16
16
return 0 ;
17
17
}
18
18
19
- #ifdef CONFIG_PRINTK
20
- /*
21
- * Until we have syscall support in Rust, wrap this syscall.
22
- */
23
- void wrapped_str_out (char * c , size_t n )
24
- {
25
- k_str_out (c , n );
26
- }
27
- #endif
28
-
29
19
#endif
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ impl Context {
77
77
fn flush ( & mut self ) {
78
78
if self . count > 0 {
79
79
unsafe {
80
- wrapped_str_out ( self . buf . as_ptr ( ) , self . count ) ;
80
+ zephyr_sys :: k_str_out ( self . buf . as_mut_ptr ( ) as * mut i8 , self . count ) ;
81
81
}
82
82
self . count = 0 ;
83
83
}
@@ -111,7 +111,3 @@ pub fn printkln(args: Arguments<'_>) {
111
111
context. add_byte ( b'\n' ) ;
112
112
context. flush ( ) ;
113
113
}
114
-
115
- extern "C" {
116
- fn wrapped_str_out ( buf : * const u8 , len : usize ) ;
117
- }
You can’t perform that action at this time.
0 commit comments