sim: Use logging to control output
Use the Rust logging so that normal messaging isn't overwhelmed by
messages printed. The default level is 'error' which will only print
full errors (including the failures at the end).
To run with warnings:
RUST_LOG=warn ./target/release/bootsim ...
This will print warnings, showing the particular failures in mind.
Using 'info' instead of 'warn' will print lots of progress as it runs.
diff --git a/sim/csupport/run.c b/sim/csupport/run.c
index 677f40c..e24531f 100644
--- a/sim/csupport/run.c
+++ b/sim/csupport/run.c
@@ -43,7 +43,7 @@
flash_areas = adesc;
if (setjmp(boot_jmpbuf) == 0) {
res = boot_go(&rsp);
- printf("boot_go result: %d (0x%08x)\n", res, rsp.br_image_addr);
+ /* printf("boot_go result: %d (0x%08x)\n", res, rsp.br_image_addr); */
return res;
} else {
return -0x13579;