You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/embed/rust/src/micropython/print.rs

17 lines
337 B

use super::ffi;
/// Print a slice into emulator console.
/// Is being '\0' terminated automatically.
pub fn print(to_log: &str) {
unsafe {
ffi::mp_print_strn(
&ffi::mp_plat_print,
to_log.as_ptr() as _,
to_log.len(),
0,
'\0' as _,
0,
);
}
}