We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ets_printf
1 parent a3b46b7 commit 9f4b537Copy full SHA for 9f4b537
src/libstd/sys/unix/stdio.rs
@@ -9,12 +9,12 @@ mod xtensa {
9
use super::*;
10
11
extern "C" {
12
- fn ets_write_char_uart(c: libc::c_char);
+ fn ets_printf(fmt: *const libc::c_char, ...) -> libc::c_int;
13
}
14
15
pub fn write(buf: &[u8]) -> io::Result<usize> {
16
for &b in buf.iter() {
17
- unsafe { ets_write_char_uart(b as libc::c_char) }
+ unsafe { ets_printf(b"%c\0" as *const u8 as *const libc::c_char, b as libc::c_int) };
18
19
20
Ok(buf.len())
0 commit comments