Print callback results to stderr
Test: atest MicrodroidHostTestCases
Test: manually run payloads and see output
Change-Id: Ieff3a9f8c1cb8b7598e773003a74a84f7bdecc22
diff --git a/vm/src/run.rs b/vm/src/run.rs
index 4b656ae..ccb4085 100644
--- a/vm/src/run.rs
+++ b/vm/src/run.rs
@@ -190,10 +190,12 @@
}
fn onPayloadReady(&self, _cid: i32) -> BinderResult<()> {
+ eprintln!("payload is ready");
Ok(())
}
- fn onPayloadFinished(&self, _cid: i32, _exit_code: i32) -> BinderResult<()> {
+ fn onPayloadFinished(&self, _cid: i32, exit_code: i32) -> BinderResult<()> {
+ eprintln!("payload finished with exit code {}", exit_code);
Ok(())
}