Print debug info before potential failure. am: 9cfc72e848
am: 907b9ce239
Change-Id: I0a74c105e1157c62c83b8d0dd69591f3f79b2c30
diff --git a/iface_fuzzer/ProtoFuzzerRunner.cpp b/iface_fuzzer/ProtoFuzzerRunner.cpp
index eb8deb1..8fe7931 100644
--- a/iface_fuzzer/ProtoFuzzerRunner.cpp
+++ b/iface_fuzzer/ProtoFuzzerRunner.cpp
@@ -172,6 +172,7 @@
void ProtoFuzzerRunner::Execute(const ExecSpec &exec_spec) {
for (const auto &func_call : exec_spec.function_call()) {
+ cout << func_call.DebugString() << endl;
Execute(func_call);
}
}
@@ -185,7 +186,6 @@
cerr << "Interface is not open: " << iface_name << endl;
exit(1);
}
- cout << func_call.DebugString() << endl;
FuncSpec result{};
iface_desc->second.hal_->CallFunction(func_spec, "", &result);