This library prints text to the Qemu emulator's serial port on the virt
RISC-V machine target. This crate is used by Diosix for debugging during system startup. It can also be used by non-std libraries that need to output debugging and diagnostic information during development.
If you wish to use this for your own project, let me know and I'll tidy up the documentation and API.
Two macros are provided: println
and print
that map to the std library's println
and print
. For example...
qemuprint::println!("Hello, world. Testing {} {} {}", 1, 2, 3);
...will print to the Qemu terminal:
Hello, world. Testing 1 2 3
Please email Diosix project lead Chris Williams if you have any questions or issues to raise, wish to get involved, have source to contribute, or have found a security flaw. You can, of course, submit pull requests or raise issues via GitHub, though please consider disclosing security-related matters privately. Please also observe the Diosix project's code of conduct if you wish to participate.
Copyright © Chris Williams, 2020. See LICENSE for distribution and use of source code and binaries.