getInterfaceVersion doesn't provide any information and is being
removed. I've replaced the call with interfaceChain here so that a
better description can be obtained.
Bug:
34041669
Test: compiles
Change-Id: I00e5154e92edf2dd17b3e899b094589642ba3b3e
}
static int do_hal_info(const sp<IBootControl> module) {
- fprintf(stdout,
- "HAL module version: %u.%u\n",
- module->getInterfaceVersion().get_major(),
- module->getInterfaceVersion().get_minor());
+ module->interfaceChain([&](const auto& chain) {
+ if (chain.size() == 0) {
+ return; // error, can't dump info
+ }
+ fprintf(stdout,
+ "HAL Version: %s\n",
+ chain[0].c_str());
+ });
return EX_OK;
}