rust: samples: add `rust_print` example
authorMiguel Ojeda <ojeda@kernel.org>
Thu, 10 Nov 2022 16:41:16 +0000 (17:41 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 1 Dec 2022 19:13:11 +0000 (20:13 +0100)
commitc3630df66f95e6c18987734b39f0239303dd72d8
tree628d0df227bb069221e0d8bfc176fdbe618acaa9
parentfc6c7cac83f05f455be1f35160a618e9df103838
rust: samples: add `rust_print` example

Add example to exercise the printing macros (`pr_*!`) introduced
in the previous patches.

Reviewed-by: Finn Behrens <me@kloenk.dev>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
Tested-by: Sergio González Collado <sergio.collado@gmail.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
samples/rust/Kconfig
samples/rust/Makefile
samples/rust/rust_print.rs [new file with mode: 0644]